algorithms icon indicating copy to clipboard operation
algorithms copied to clipboard

Issue : Incorrect variable usage in reverseList function

Open PrinceSajjadHussain opened this issue 6 months ago • 0 comments

In the reverse_list.py file, the reverseList function has a typo. The curr = next assignment inside the while loop should be curr = following. This is because next is not defined, and the intention is to move the curr pointer to the node that was previously following it.

PrinceSajjadHussain avatar Jun 23 '25 16:06 PrinceSajjadHussain