-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathBinaryTreeInorderTraversal.cs
More file actions
executable file
·47 lines (44 loc) · 2.02 KB
/
BinaryTreeInorderTraversal.cs
File metadata and controls
executable file
·47 lines (44 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Source : https://leetcode.com/problems/binary-tree-inorder-traversal
// Author : codeyu
// Date : Thursday, March 9, 2017 11:28:25 PM
/**********************************************************************************
*
* Given a binary tree, return the inorder traversal of its nodes' values.
*
*
* For example:
* Given binary tree [1,null,2,3],
*
* 1
* \
* 2
* /
* 3
*
*
*
* return [1,3,2].
*
*
* Note: Recursive solution is trivial, could you do it iteratively?
*
**********************************************************************************/
using System;
using System.Collections.Generic;
using Algorithms.Utils;
namespace Algorithms
{
/**
* Definition for a binary tree node.
* public class TreeNode {
* public int val;
* public TreeNode left;
* public TreeNode right;
* public TreeNode(int x) { val = x; }
* }
*/
public class Solution094 {
public static IList<int> InorderTraversal(TreeNode root) {
throw new NotImplementedException("TODO");
}
}}