educative.io

Visual representation and logic differs

Reverse a LinkedList (easy)

Visual representation of reversing linkedList never uses next but when it comes to logic suddenly next = previous.next,

There is parity in code vs visual representation. Felt it confusing and more overhead while understanding the code

Hi,

Thank you for your feedback. Visual representation is used to illustrate the concept, not the exact code itself. This course is a bit advanced and we went with the assumption that the learner is familiar with how linked lists are implemented. However, we can always work on making the learning experience more seemless for the users.

Happy learning!