Sunday, July 29, 2018

Leetcode 105: construct binary tree from preorder and inorder traversal

July 29, 2018

Introduction


It is a medium level algorithm. I like to write code for the algorithm.


My practice


I spent over one hour to debug the code and ran into index-out-of-range error, and I finally fixed all the issues.

Here is my C# code.

No comments:

Post a Comment