Domanda di colloquio di Chewy

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

Risposta di colloquio

Anonimo

17 feb 2023

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