Solution 1 in-order dfs + hash

  • t-complexity: O(n)

  • s-complexity: O(n)

Last updated