LeetCode刷題筆記(Binary Tree Inorder Traversal)

接下來又刷了一道類似的題目,思想和前面那道前序遍歷差不多,下面就來分享一下經驗。 題目如下: Given a binary tree, return the inorder traversal of its nodes' values. Example: Input: [1,null,2,3] 1 \ 2 / 3 Output: [1,3,2] Foll
相關文章
相關標籤/搜索