Meta | E4 | Phone [Rejected next day]
Anonymous User
749

Q1: Buildings with ocean view https://leetcode.com/problems/buildings-with-an-ocean-view/
Answered using stack in O(N) and asked not to implement it.

Q2: Sum root to leaf numbers https://leetcode.com/problems/sum-root-to-leaf-numbers/
Implemented the solution using dfs in O(N).

And couple of follow up questions were asked for both the questions in terms of complexity and space. Interviewer seems to be convinced with my answers. Still surprising why I got rejected the next day.

Comments (4)