Domanda di colloquio di Google

DFS based question with performance improvement.

Risposta di colloquio

Anonimo

29 ott 2021

I solved the question along with performance improvement. The reason for reject was missing boundary conditions.