Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0b5b08f

Browse files
Update README.md
1 parent f4c1205 commit 0b5b08f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎leetcode/206.reverse_linked_list/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public:
3939

4040
**Complexity analysis**
4141

42-
- Time complexity : O(n)*O*(*n*). Assume that n*n* is the list's length, the time complexity is O(n)*O*(*n*).
43-
- Space complexity : O(1)*O*(1).
42+
- Time complexity : *O*(*n*). Assume that n*n* is the list's length, the time complexity is *O*(*n*).
43+
- Space complexity : *O*(1).
4444

4545
#### Approach #2 (Recursive) [Accepted]
4646

@@ -73,8 +73,8 @@ public:
7373
7474
**Complexity analysis**
7575
76-
- Time complexity : O(n)*O*(*n*). Assume that n*n* is the list's length, the time complexity is O(n)*O*(*n*).
77-
- Space complexity : O(n)*O*(*n*). The extra space comes from implicit stack space due to recursion. The recursion could go up to n*n* levels deep.
76+
- Time complexity : *O*(*n*). Assume that n*n* is the list's length, the time complexity is *O*(*n*).
77+
- Space complexity : *O*(*n*). The extra space comes from implicit stack space due to recursion. The recursion could go up to n*n* levels deep.
7878
7979
8080

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /