Thankyou so much for creating these videos, these are so helpful
@christianonyango74602 жыл бұрын
could you do the blind75 and explain the way you do in this series? I swear i'll pay for your course, you're a God sent
@musicman1622 жыл бұрын
Wouldn't the nested while loop make this an O(n^2) time complexity?
@bessamlegrand2 жыл бұрын
Yes i was about to say the same thing
@TylerKaihara2 жыл бұрын
No, because you are only visiting each node once
@TFue01 Жыл бұрын
be my teacher for dsa and algorithms
@TFue01 Жыл бұрын
I wanted to say algo 2 times
@kazno42732 жыл бұрын
Can anyone please help me understand why changing the value of prev results in changing the value of dummy as well? Is it because of the line 15 where it has: let prev = dummy Why can't you use dummy in the while loop? I got the logic, but I can't get my head around with how the ListNode works...
@mansoorqaisrani56442 жыл бұрын
the value of dummy is not changing. It is dummy.next which is changing.