Tree: Height of a Binary Tree

  • + 0 comments

    Swift is in fact broken. The boilerplate provided is causing issue even with correct code in the getHeight() function. The boilerplate provided is force-unwrapping data in an unsafe way causing the issue to occur during the construction of the tree - even before our user controlled code can execute. Leetcode never has this issue.