Amazon interview question

data structure algorithm and coding

Interview Answer

Anonymous

30 Sept 2021

I started with brute force approach and ended up with optimal approach