4 ms·
Honestly I dont know the answer for this, its a trick you never need in the real world, but maybe it does test if you did compsci 101. I failed this as a Senior
by rr808 5y ago
Honestly I dont know the answer for this, its a trick you never need in the real world, but maybe it does test if you did compsci 101. I failed this as a Senior dev inverviewee, went back and learnt it so was preprared for the next time. It didn't make me a better programmer but now shows I've learned the basic tricks.
- sasquatch_9 5y agoWhat is the trick in reversing a linked list? The solution is just some while loops... Anyways it is a bad question to ask because it is very easy and is frequently studied so candidates just memorise the answer.
- rr808 5y agoOne while loop. Maybe you need to memorize again :).
- seba_dos1 5y agoThere's no need to memorize anything at all; if you can code you can come up with a solution on your own within at most minutes.
- sasquatch_9 5y agoI do not need to memorize it that was the point I was making, as it is so simple I can and have worked it out on the spot.
- deleted 5y ago[deleted]