Chewy Interview Question

First was implement synchronized singleton in Java. Second was Top K products.

Interview Answer

Anonymous

Feb 17, 2023

You had to remember to use the synchronized block for the first. Then use a HashMap and a PriorityQueue for the second