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
Prasad, your time complexity is O(n^2). It can be solved in O(n).
Check out your Company Bowl for anonymous work chats.