Commit e8104bc

mo khan <mo.khan@gmail.com>
2020-08-15 16:59:21
add time/space complexity
1 parent bc99703
Changed files (1)
2020
08
2020/08/15/main.rb
@@ -32,6 +32,8 @@ class ListNode
 end
 
 class Solution
+  # time: O(2n) -> O(n)
+  # space: O(n)
   def self.run(head)
     stack = []
     current = head