Given a non-empty, singly linked list with head node head, return a middle node of linked list.
If there are two middle nodes, return the second middle node.
Note:
The number of nodes in the given list will be between 1 and 100.
給一個非空的、單獨的linked list的開頭head,回傳最中間的節點。
如果有兩個中間點,回傳第二個點。
注意:
點的數量只會介於1到100之間。
LeetCode
C++