Balance a string with parentheses. "a(b)" -> "a(b)"; "(((((" -> ""; "(()())" -> "(()())"; ")ab(()" -> "ab()"; etc...
Anonymous
Hey! I had a similar experiences with you last week! I have a light accent, and it always throw me off when the person interviewing me over the *phone* has an accent as well. On one hand, it shows me they are diverse, but it did not make feel at east at all on the spot. My interviewer made me feel like he was going through a check list as well. Each time I answered his questions, he sort moved on to the next question quickly. So I have no idea, should I stop talking and wait for him or should I just MOVE ON to the next question. When we finally got to the coding session. It was very new for me to talk through my headset and listen and think AND write code at the same time. I got really stressed out for the first 10 minutes. I could not think straight. I got frustrated on myself of not able to think. Once I get over that, the questions are some what reasonable. This is my first codepad-sharing-phone-interview! It is one of those situations, if you are kind of person like me who got nervous about this kind of situation, you might be out of luck of not be able to think straight. However, once you know what it is like, you will be able to get over with it next time!
Check out your Company Bowl for anonymous work chats.