Reduce the time complexity of the solution to O(1)
Anonymous
I came up with O(N) solutions (N is in order of 1 million). The interviewer wasn't happy with this and wanted to reduce the time complexity.
Check out your Company Bowl for anonymous work chats.