... 其實有點tricky,不太容易想到這個方法。這種fast和slow pointer的用法在尋找linked list的中間點的時候也會用到。 ... Detect Linked List cycle.
確定! 回上一頁