Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions articles/binary-tree-from-preorder-and-inorder-traversal.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ class Solution {
### Time & Space Complexity

* Time complexity: $O(n ^ 2)$
* Space complexity: $O(n ^ 2)$
* Space complexity: $O(n)$

---

## 2. Hash Map
## 2. Hash Map + Depth First Search

::tabs-start

Expand Down Expand Up @@ -780,4 +780,4 @@ class Solution {
### Time & Space Complexity

* Time complexity: $O(n)$
* Space complexity: $O(n)$
* Space complexity: $O(n)$ for recursion stack.
Loading