Facebook London Software Engineer Intern: phone interview questions
Anonymous User
2305

Just finished my first round Software Engineering Intern interview at Facebook London.

These were the two questions:
Q1: Given a string of type “(({X}({Y})))(Z)”, determine the max depth of nested parentheses in the string. Answer is in this case 4. Parentheses without variables in them do not count.

Q2: Given a list of intervals [ [6,7], [2,5], [0,2], [7,8], [7,10] ], merge overlapping intervals so the result in this case would be [ [0,5], [6,10] ].

Hopefully this is useful for you guys in one way or another.

Comments (5)