Amazon interview question

1 coding question based on stack and 2 on greedy

Interview Answer

Anonymous

30 May 2020

Explained the logic and complexity and wrote the code