141. Linked List Cycle
1.問題
判斷linked list是否有cycle
2.想法
提問
function header, parameter
test input
觀察
說明想法
快慢指針: 若是有cycle, 則快慢指針一定會colid
測試計算複雜度
3.程式碼
Last updated
判斷linked list是否有cycle
提問
function header, parameter
test input
觀察
說明想法
快慢指針: 若是有cycle, 則快慢指針一定會colid
測試計算複雜度
Last updated