3 ms·
I suspect a considerable advantage is knowing that there are bound to be existing things to reverse a list and not writing it yourself.
by arethuza 8y ago
I suspect a considerable advantage is knowing that there are bound to be existing things to reverse a list and not writing it yourself.
- muzani 8y agoIt's quite trivial, yes, but that's why we use it as a benchmark for the 1x programmer. Someone who can get work done, and scales in high numbers.
- jstimpfle 8y agoA considerable advantage would be knowing that you shouldn't use a linked list in most scenarios. The next best would be understanding that there are many different ways to do "linked lists", and it's important to control the choice. Software dependencies have a huge cost. The next best advantage would be recognizing that if you need to reverse a linked list in practice, you're probably doing it wrong. Writing a linked list implementation isn't hard. There aren't many things that are hard to implement. What's hard is making good decisions what to implement. No library can help there.