Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, I suppose so. I only asked because reversing a singly-linked list just seems like a PitA.



Reversing a singly-linked list is actually easier: you take each element off the front of the old list and put it onto the front of the new list.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: