educative.io

Example how right node can be reach null

here one step is that, during moving forward for right now n times, if it reaches NULL return head.next.
Anyone can suggest a scenario that might happen?
Appreciate it.


Course: https://www.educative.io/collection/10370001/4651429556125696
Lesson: https://www.educative.io/collection/page/10370001/4651429556125696/6421387617763328

never mind last scenario does that
[69, 8, 49, 106, 116, 112] , 6


Course: https://www.educative.io/collection/10370001/4651429556125696
Lesson: https://www.educative.io/collection/page/10370001/4651429556125696/6022707546947584

2 Likes