how to find middle node in singly linked list without traversal?
问题 how to find middle node in singly linked list without traversal ? is it possible in first place ? In One traversal I Use the traditional method of using 2 pointers one which jump's 2 positions and other which jump's one position ..is there any other approach to find middle node in one traversal 回答1: No, it's not possible. The addresses of the nodes are arbitrary, so there's no way of knowing them without traversing them. 回答2: public void findMiddleNode() { Node n1 = headNode; Node n2 =