Sollicitatievraag bij Google

How to find if two binary trees have the same structure?

Antwoorden op sollicitatievragen

Anoniem

31 aug 2018

Recursive solution checking structure at current node, then check left, then check right.

1

Anoniem

26 feb 2021

Through questions like this, interviewers are mostly trying to test your skillset (and its relevance to the role) as robustly as possible, so be prepared for multiple offshoots and followups. It could be a useful exercise to do mocks with friends or colleagues in Google to get a real sense of what the interview is actually like. Alternatively Prepfully has a ton of Google Site Reliability Engineer experts who provide mock interviews - they provide incredible value at a great price. prepfully.com/practice-interviews

1