During the phone interview, the coding question was done on a google doc and asked: In Java, given a String of [a-z] characters, find and return the first character that appears only once. I implemented it using a counting array and in the end the manager asked if I could implement it in another way, which I mentioned I could do it using a HashMap.
Anonymous
Also, you're using O(n) space while you can solve it with only O(1) space.
Check out your Company Bowl for anonymous work chats.