PHP
Daily Leetcode Solution
Login To Post Your Comment
9 comments
Caleb Akeju
2 days ago
Had to leave the comments on this one because it was confusing at first.
#leetcode
Caleb Akeju
3 days ago
Check for duplicate. I intially thought a single loop could do this by checking if the index of a num is same as the last index, but it did not quite work. Storing in an object and checking if any value of the keys is more than one sure worked.
Load More...