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
相关文章
相关标签/搜索