3 ms·
What 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 frequ
by sasquatch_9 5y ago
What 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.