Skip to content

Commit 92a7db7

Browse files
authored
Update Solution.kt
1 parent 3f6e4fc commit 92a7db7

File tree

1 file changed

+1
-0
lines changed
  • src/main/kotlin/g1001_1100/s1028_recover_a_tree_from_preorder_traversal

1 file changed

+1
-0
lines changed

src/main/kotlin/g1001_1100/s1028_recover_a_tree_from_preorder_traversal/Solution.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import com_github_leetcode.TreeNode
1717
*/
1818
class Solution {
1919
private var ptr = 0
20+
2021
fun recoverFromPreorder(traversal: String): TreeNode? {
2122
return find(traversal, 0)
2223
}

0 commit comments

Comments
 (0)