Review binary tree inorder iterative solution, add some test cases.
Questions and Answers:
1. How is the practice of
inorder traversal iterative solution?
Julia compared to the
other solution, line 354 - line 372, inOrderIterative_B
and chose this one to
practice:
She wrote some comment to
argue that the solution is very efficient and no redundant code. She likes to
use reasoning and analysis to help her structure the function.
Here are her analysis:
Follow up after 12 months
March 27, 2017
Read the blog and think about the better presentation, more readable. Write another C# practice, and post a question about binary tree inorder traversal (iterative solution) for code review. | |||||||||||
From January 2015, she started to practice leetcode questions; she trains herself to stay focus, develops "muscle" memory when she practices those questions one by one. 2015年初, Julia开始参与做Leetcode, 开通自己第一个博客. 刷Leet code的题目, 她看了很多的代码, 每个人那学一点, 也开通Github, 发表自己的代码, 尝试写自己的一些体会. She learns from her favorite sports – tennis, 10,000 serves practice builds up good memory for a great serve. Just keep going. Hard work beats talent when talent fails to work hard.
Wednesday, May 25, 2016
Binary Tree Inorder traversal - Iterative solution - warm up practice
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment