Skip to content

Commit

Permalink
Update Solutions/197.py
Browse files Browse the repository at this point in the history
Consolidate first solution’s time complexity description

Co-authored-by: Tapajyoti Bose <[email protected]>
  • Loading branch information
WHAHA-HA and ruppysuppy committed Jun 7, 2022
1 parent 619d56c commit 3f9fa42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solutions/197.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def rotate_array_right_optimized(arr: List[int], k: int) -> List[int]:
SPECS:
rotate_array_right:
TIME COMPLEXITY: originally said O(n ^ 2); in fact seeems O(n)
TIME COMPLEXITY: O(n)
SPACE COMPLEXITY: O(n)
rotate_array_right_optimized:
Expand Down

0 comments on commit 3f9fa42

Please sign in to comment.