The expected output it is missing the pair [2, 1].
This is what it returns: [[1,0],[0,1],[1,2],[2,0],[0,2]]
problem states unique indexes, not words formed. [[0,1], [1,0]] forms an equal word as well but it's listed as an expected return value. so this definitely looks like a bug to be as well.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.