#面试刷题
该标签下的全部文章。
Reverse Nodes in kGroup
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative. e.g: 1->2->3->4->
Start of Circle
寻找某个特定位置,用runner和chaser。这里的技巧是,如果runner以两倍速度前进,chaser以一倍速前进,在有环的情况下,runner与chaser一定能在某点相遇。