Pregunta de entrevista de Google

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

Respuestas de entrevistas

Anónimo

31 ago 2018

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

1

Anónimo

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