You are viewing a single comment's thread. Return to all comments →
Great solution! Your runtime is O(n + m) though, not O(n). Since m can be much bigger than n, it does make a difference.
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
Great solution! Your runtime is O(n + m) though, not O(n). Since m can be much bigger than n, it does make a difference.