w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Finding max depth of binary tree without recursion

If you can maintain left and right values at each node, it can be done.

http://leetcode.com/2010/04/maximum-height-of-binary-tree.html.

Possible duplicate: Retrieving a Binary-Tree node's depth non-recursively





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.