Facebook | Phone interview

Anonymous User
2222
Apr 21, 2021
Apr 22, 2021

YOE: 4 years
I was asked these two questions-

  1. https://leetcode.com/problems/binary-tree-level-order-traversal/
  2. https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/

Update: The overall experience was good. I was able to code the first one in ~10 min
I was asked to optimize my approach in second question as I was using a stack and another set(to mark invalid parenthesis). With some hints from the interviewer, I was able to come up with an approach to use no extra memory apart from the output string

Result - Moved to next round

Comments (2)