algorithms icon indicating copy to clipboard operation
algorithms copied to clipboard

Issue 1: Typo in `addTwoNumbers` in `add2nums.py`

Open PrinceSajjadHussain opened this issue 6 months ago • 0 comments

The code has listNode(0) instead of ListNode(0). This will cause a NameError. Also, there's a ternary operator using ? and : which is not valid Python syntax. There is missing logic in the while loop, the code is incomplete.

PrinceSajjadHussain avatar Jun 23 '25 13:06 PrinceSajjadHussain