Giving back here. You can search all questions with FB recently asked. I dont think i need answer any of the followups here since the questions are textbook leetcode.
PS:
- Find the minimum turns to open a lock with 4 rings. Lock opens at 0,0,0,0. Lock can turn any direction.
- Find the best location in a 2d grid of 0,1 so that it is at most optimal distance to all 1s
Onsite:
- Design dropbox
- Behavioral - ....
- Coding 1) buildings-with-an-ocean-view/ 2) minimum-remove-to-make-valid-parentheses/
- Coding 1) diagonal-traverse/ matrix with slight variation 2) implement lru-cache
REJECT.- coding. seems they need you to write code in first go. I did not even ask hints still the interviewer kept nudging. Horrible experience.