Facebook | Phone | String Compression & Reorganize String
Anonymous User
1443

YOE: 2
Location: US

Started with short introduction.
2 string manipulation related questions - both available on leetcode.
1st was easy. https://leetcode.com/problems/string-compression/
2nd was medium. https://leetcode.com/problems/reorganize-string/

I asked clarifying questions to the interviewer before solving 1st problem. Then after solving it I walked through the code. Interviewer then asked me to provide some test cases. By then I had used up approx 30 minutes of the time.

For the 2nd problem, I again asked some clarifying questions, and we had good discussion regarding that. Interviewer asked me for the approach to solve the problem since there wasn't enough time to solve. I did mention the correct approach and last 5 minutes were reserved for me to ask him questions.

Overall I feel, that communication was key, I constantly spoke what was I thinking. When I felt the interview was not responding, I made sure if he was listening by asking if the network connection was good. And asked some clarifying question before jumping to code. Which I believe played more part winning me the interview than my coding skills.

Comments (4)