摘要:
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
欣姐姐
阅读(180)
评论(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
欣姐姐
阅读(130)
评论(0)
推荐(0)

浙公网安备 33010602011771号