Skip to content

Commit 1e71d9c

Browse files
adjust wording
1 parent 5ea7407 commit 1e71d9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/3_Silver/Two_Pointers.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -431,13 +431,13 @@ print(ans)
431431
<Quiz.Answer>
432432
The time complexity of a standard two pointers algorithm is $\mathcal{O}(N)$ when not considering any other operations on the array.
433433
<Quiz.Explanation>
434-
Incorrect. Assuming that both pointers move one step at a time and the array isn't sorted, both pointers would take a maximum of $N$ steps.
434+
Incorrect. Assuming that both pointers move one step at a time, both pointers would take a maximum of $N$ steps.
435435
</Quiz.Explanation>
436436
</Quiz.Answer>
437437
<Quiz.Answer>
438438
The space complexity of a standard two pointers algorithm is $\mathcal{O}(1)$ when not considering the space taken up by the array.
439439
<Quiz.Explanation>
440-
Incorrect. Assuming that both pointers move one step at a time and the array isn't sorted, there would be a constant space complexity.
440+
Incorrect. Assuming that both pointers move one step at a time, there would be a constant space complexity.
441441
</Quiz.Explanation>
442442
</Quiz.Answer>
443443
<Quiz.Answer correct>

0 commit comments

Comments
 (0)