File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -431,13 +431,13 @@ print(ans)
431
431
<Quiz.Answer>
432
432
The time complexity of a standard two pointers algorithm is $\m athcal{O}(N)$ when not considering any other operations on the array.
433
433
<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.
435
435
</Quiz.Explanation>
436
436
</Quiz.Answer>
437
437
<Quiz.Answer>
438
438
The space complexity of a standard two pointers algorithm is $\m athcal{O}(1)$ when not considering the space taken up by the array.
439
439
<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.
441
441
</Quiz.Explanation>
442
442
</Quiz.Answer>
443
443
<Quiz.Answer correct>
You can’t perform that action at this time.
0 commit comments