Facebook | Phone | Simplify Path & Integer To English
Anonymous User
4486

Location: London

Had a phone interview couple of days back with facebook. Questions asked :

Question 1:
A variation of https://leetcode.com/problems/simplify-path/. Given a current working directory and destination path, return the resultant path. I coded this 20 min and ran sample testcases.
string cd (string cwd, string destination)
e.g. /home/foo/ /x/y/.. Output: /home/foo/x/

Question 2:
Interger to English : https://leetcode.com/problems/integer-to-english-words/. I was asked this in last 20 mins to code. I completed the code in time with remaining 5 mins to have follow up question from my side .

Interviewer seems satisfied with both the solution. But I have not heard from my recruiter yet. How long does it take for recruiter to comeback with feedback ?

EDIT : Got a rejection mail today. Not sure what went wrong.

Comments (9)