LeetCode刷題筆記(Partition List)

最近一直在刷鏈表的題目,感覺越來越順手了,沒有以前那麼玄學了,下面和大家來分享一下經驗吧! 題目如下: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve t
相關文章
相關標籤/搜索