Skip to content

Conversation

vanyamil
Copy link

Incorrect usage of prev made the rows linked lists be incorrectly ordered, while maintaining functionality.

More specifically, rather than the nodes of a particular row be ordered
1 <-> 2 <-> ... <-> N <-> back to 1

They are ordered
1 <-> N <-> ... <-> 2 <-> back to 1

due to this mistake.
This does not affect the execution of the algorithm, as any time we use rows' L-R pointers, we traverse the whole list, and the list still is correctly linking all the nodes.

Incorrect usage of prev made all row L (and possibly R) pointers point to header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant