Domanda di colloquio di Lyft

Return second largest number in a binary tree.

Risposte di colloquio

Anonimo

28 feb 2018

Second largest in binary search tree seems like an appropriate question.

Anonimo

18 set 2020

If its a binary tree then O(N) if BST then O(h)