摘要:
P24 Oracle并集union和union all union指对两个结果集作并集,重复行只显示一次 union all也是作并集,但是不去重 合并的时候可以指定select哪集列,查询结果会按照你指定的顺序来,只要数据类型相同,列数相同,就可以合并,所以自己一定要注意写明正确的顺序。 P25 阅读全文
摘要:
1.归并有序数组 归并A,B到A public class Solution { public void merge(int A[], int m, int B[], int n) { int a = m-1, b = n-1; int i = A.length-1; while(a>=0 && b 阅读全文
摘要:
1.判断链表中是否有环 public class Solution { public boolean hasCycle(ListNode head) { if (head == null) return false; ListNode slow = head; ListNode fast = hea 阅读全文