原题链接在这里:https://leetcode.com/problems/interval-list-intersections/ 题目: Given two lists of closed intervals, each list of intervals is pairwise disjoin ...
分类:
其他好文 时间:
2019-08-24 09:35:54
阅读次数:
83
思路:使用归并排序,每一轮归并后都局部有序,可以利用这个,减少时间复杂度 小和问题 关键代码: java public static int mergeSort(int[] arr, int left, int right) { if (left == right) { return 0; } in ...
分类:
其他好文 时间:
2019-08-22 22:01:00
阅读次数:
94
一个最简单的做法,通过添加.gitattributes文件来完成 1 在要被合并的分支中设置 git config --global merge.ours.driver true设置git配置项merge不合并的具体分支上的内容的; 2 在要被merge的分支上创建.gitattributes文件, ...
分类:
其他好文 时间:
2019-08-22 18:36:59
阅读次数:
97
import com.google.common.collect.Lists; import com.jayway.jsonpath.Configuration; import com.jayway.jsonpath.DocumentContext; import com.jayway.jsonpa... ...
分类:
Web程序 时间:
2019-08-22 13:22:26
阅读次数:
110
General terms Analytics as a Service (AaaS) The provision of analytics through Web-delivered technologies. These solutions offer businesses an alterna ...
分类:
其他好文 时间:
2019-08-21 00:26:08
阅读次数:
95
Unions are used when we want a GraphQL field or list to handle multiple types of data. With a Union Type, we can define a field that could resolve com ...
分类:
其他好文 时间:
2019-08-20 18:52:54
阅读次数:
72
二叉树递归相关题目的时间复杂度基本上都是O(n) = 一共有n个点 + 每个点的时间复杂度(1) 而二叉树分治法最坏的时间复杂度为O(n^2) 时间复杂度:T(n) = 2T(n/2) + O(1) = O(n) Merge Sort, Quick Sort: T(n) = 2T(n/2) + O( ...
分类:
其他好文 时间:
2019-08-20 18:29:33
阅读次数:
90
Mysql运用MERGE引擎进行分表 这里所做的分表是指水平拆分,就是多张表数据结构完全一致(所有的数据列一致,不多不少)。 要想用 MERGE引擎,所有需要拆分的表及拆分后的字表,必须为 MYISAM 引擎,这个好难满足。因为 MYISAM 引擎不支持事务,这在生产实际中极少数据表会采用 MYIS ...
分类:
其他好文 时间:
2019-08-20 00:33:03
阅读次数:
170