Skip to content

Commit 8ee3bc0

Browse files
authored
Update README.md
1 parent 2033c26 commit 8ee3bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Medium/456. 132 Pattern/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ We also keep track of the '3' candidate as 'third'. If we encounter a number sma
2323
If the current number is greater than the top of the stack, it becomes a potential '3' candidate, and we update 'third'.
2424
Finally, we push the current number onto the stack for potential future '2' candidates.
2525

26-
# Complexity
26+
### Complexity
2727
- Time complexity: O(n), where n is the length of the 'nums' list.
2828
- Space complexity: O(n), as the stack can potentially hold all elements of the 'nums' list.

0 commit comments

Comments
 (0)