摘要: public void nextPermutation(int[] nums) { int i = nums.length -2; while(i>=0 && nums[i+1] <= nums[i]){ i--; } if(i>=0){ int j = nums.length -1; while( 阅读全文
posted @ 2020-05-29 15:24 欣姐姐 阅读(175) 评论(0) 推荐(0) 编辑
摘要: class Solution { public ListNode deleteNode(ListNode head, int val) { ListNode ln = head; ListNode p = new ListNode(); p.next = ln; head = p; while(ln 阅读全文
posted @ 2020-05-29 10:31 欣姐姐 阅读(122) 评论(0) 推荐(0) 编辑