coding test: Give a linked list, what is the most efficient way to find the middle node?
Sigiloso
- go through each node, then you can get the middle node - go through the linked list, and do the reverse in the same time (memory wasting) - set a temp node, which does 2 or 3 times faster then the original one (the answer he likes)