Google interview question

Implement the algorithm to calculate the diameter of a binary tree.

Interview Answer

Anonymous

2 May 2024

Got close but didn't solve the problem completely in time, so the rejection was expected.

1