Taro Logo

Great Code, Annoying Repeats

Software Engineer
Former Employee
Worked at Google for less than 1 year
September 24, 2024
London, England
5.0
Pros

The space complexity is O(n) as well, since in the worst case, the queue can hold all the nodes at the last level of the tree, which can be approximately half of the total number of nodes.

Cons

google google google google google

Was this helpful?

Google Interview Experiences