摘要: 链接:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/ 代码 class Solution { public: int removeDuplicates(vector<int>& nums) { int k = 阅读全文
posted @ 2020-06-17 16:34 景云ⁿ 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/reverse-nodes-in-k-group/ 代码 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *n 阅读全文
posted @ 2020-06-17 16:17 景云ⁿ 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/swap-nodes-in-pairs/ 代码 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; 阅读全文
posted @ 2020-06-17 15:55 景云ⁿ 阅读(46) 评论(0) 推荐(0) 编辑