Skip to content
RED SAGSkills
medium10 pts · first answer countshash-mapjavascript

Grid coordinates as a JavaScript key

In JavaScript, you track visited cells with a Set. Why does visited.add([r, c]) followed by visited.has([r, c]) return false?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions