可持久化 不强制在线的可持久化不是可持久化 卡空间的可持久化已经成为历史的大势 以上都是在胡扯 以前一直以为区间修改又不能标记永久化的主席树是假的,后来发现是自己naive 其实很简单,有一个操作 然后,我们在进入一个新版本的时候,把根对着它基于的历史版本的根赋值一遍,再进行操作。 比如你要进行某区 ...
分类:
其他好文 时间:
2019-05-05 17:17:43
阅读次数:
124
LeetCode第21题 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two li ...
分类:
编程语言 时间:
2019-05-05 17:15:08
阅读次数:
112
Quick Sort Let's arrange a deck of cards. Your task is to sort totally n cards. A card consists of a part of a suit (S, H, C or D) and an number. Writ ...
分类:
编程语言 时间:
2019-05-03 22:31:53
阅读次数:
177
类型:数组 解题工具:C++ 语言 地址: https://leetcode-cn.com/problems/merge-intervals/ 执行用时 : 36 ms, 在Merge Intervals的C++提交中击败了38.34% 的用户 内存消耗 : 12.4 MB, 在Merge Inte ...
分类:
其他好文 时间:
2019-05-03 19:59:30
阅读次数:
153
二 Hive安装环境准备 2.1 Hive安装地址 1)Hive官网地址: http://hive.apache.org/ 2)文档查看地址: https://cwiki.apache.org/confluence/display/Hive/GettingStarted 3)下载地址: http:/ ...
分类:
其他好文 时间:
2019-05-03 18:52:54
阅读次数:
212
CentOS7服务器中apache、php7以及mysql5.7的配置代码如下所示: yum upgradeyum install net-tools 安装apache (http://m.8682222.com)关闭SELinux编辑器打开 etc/selinux/config 文件,找到 SEL ...
分类:
数据库 时间:
2019-05-03 18:37:21
阅读次数:
215
-(void)_test4{ ///RAC combineLatest和merge // combineLatest只有当两个信号都发送了 订阅者才能收到信息 结果一次收到 结果是数组 // merge只要有一个发送了就能收到 结果一条一条收到 // RACSubject *baseSubjectT... ...
分类:
其他好文 时间:
2019-05-03 18:20:33
阅读次数:
124
归并排序 归并的排序的核心在于合并,递归到底一个数字自然有序 python python def merge(A, p, q, r): L = A[p:q+1] R = A[q+1:r+1] L.append(float("inf")) R.append(float("inf")) i = 0 j ...
分类:
编程语言 时间:
2019-05-02 20:11:55
阅读次数:
142
题目描述 Given two arrays A, B of length n and m separately, you have to merge them into only one array C (of length n + m) obeying the rule that the rela ...
分类:
其他好文 时间:
2019-05-02 18:35:52
阅读次数:
183
闲来无事,在github上发现一个很有趣的project curlini,实现命令行对ini文件的增删改查和merge操作。起初会觉得至于如此小题大做么,但查阅之后,发现该项目对文件的操作比较精细,从文件锁FileLock、临时文件tempfile、SHA256 hashlib、退出执行atexit ...
分类:
Web程序 时间:
2019-05-02 15:41:10
阅读次数:
157