← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
You are given an array of digit strings nums and a digit string target. Return the number of pairs of indices (i, j) such that i != j and the concatenation of nums[i] + nums[j] equals target. Concatenation means appending one string directly after another; for example, "12" + "34" produces "1234". Each ordered pair (i, j) with i ≠ j is considered distinct, so both (i, j) and (j, i) must be counted when each concatenation equals target.