摘要: 还可以; public void merge(int[] nums1, int m, int[] nums2, int n) { if(m == 0){ if (n >= 0) System.arraycopy(nums2, 0, nums1, 0, n); return; } int k = nu 阅读全文
posted @ 2020-07-03 11:31 欣姐姐 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 虽然做出来了,但是好像效果并不是很好。。 public Node connect(Node root) { if(root == null){ return null; } //构建一个队列 Queue<Node> queue = new ArrayDeque<>(); queue.add(root 阅读全文
posted @ 2020-07-03 10:20 欣姐姐 阅读(197) 评论(0) 推荐(0) 编辑