Amazon Interview Question

The question was based on Greedy Approach. Another one for level order traversal

Interview Answer

Anonymous

Oct 3, 2024

I could not solve the problem, mostly because I was nervous. I was able to generate the solution for the 2nd question though