DEV Community

Paolo Ventura
Paolo Ventura

Posted on

100 algos in 100 days (Day 19)

[03/10] After having a great restful Saturday it was a full day of Binary Search Trees on Sunday!

Question: Find the second largest number in a search tree

This seemed quite easy and I attacked it assuming the tree was balanced. However, the big gotcha was that you could have a sub tree at the maximum number.

Top comments (0)