摘要:
1、复杂度概念 算法复杂度分为时间复杂度和空间复杂度 时间复杂度表示为函数运行的次数,分为O(1),O(N),O(N^2),O(logN),O(2^N)大概几种 比如:a=1表示为O(1) for i in range(n): print(n) 为O(N) 2、hashmap的概念 散列表(Hash 阅读全文
摘要:
1、左连 select a.*,b.* from a left join b on a.id=b.id 把右边的表拼接到左边,如果左边存在,但右边不存在时,右边表会展示为null 2、右边 select a.*,b.* from a right join b on a.id=b.id 与左连相反 3 阅读全文
摘要:
def quick(list,start,end): if start>=end: return low = start high = end key = list[low] while start<end: while start<end and list[end]>key: end-=1 lis 阅读全文