Domanda di colloquio di Pinterest

How would you solve this problem more efficiently?

Risposta di colloquio

Anonimo

8 set 2024

The answer was with a hashmap, but I didn't know that at the time.