E - Vasya and Binary String 思路:区间dp + 记忆化搜索 转移方程看上一篇博客。 代码: ...
分类:
其他好文 时间:
2019-01-27 19:07:10
阅读次数:
348
题目: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed t ...
分类:
其他好文 时间:
2019-01-27 19:03:00
阅读次数:
168
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), r... ...
分类:
其他好文 时间:
2019-01-27 16:25:36
阅读次数:
154
2018 ACM-ICPC, Syrian Collegiate Programming Contest A Hello SCPC 2018! 水题 B Binary Hamming 水题 C Portals 思路:并查集维护连通性 代码: //#pragma GCC optimize(3) //# ...
分类:
其他好文 时间:
2019-01-26 23:44:21
阅读次数:
255
https://leetcode.com/tag/binary-search/ ...
分类:
其他好文 时间:
2019-01-26 23:05:54
阅读次数:
290
msdn叙述:The SortedDictionary<TKey, TValue> generic class is a binary search tree with O(log n) retrieval, where n is the number of elements in the dict ...
命令: which 作用: 查看执行命令所在位置 使用: which ls which useradd 等等。。。 bin和sbin: 绝大多数可执行文件都保存在 /bin、/sbin、/usr/bin、/usr/sbin; /bin:(binary),是二进制执行文件目录,主要用于具体应用; /s ...
分类:
其他好文 时间:
2019-01-26 13:18:21
阅读次数:
201
Visible Trees Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4331 Accepted Submission(s): 1991 P ...
分类:
其他好文 时间:
2019-01-25 20:02:17
阅读次数:
120
对于学习的线段树方面的,发现很多问题可以用它来求解,但是做题的时候发现,用线段树太容易tle也,很多次也是卡时间过的,然后就发现了树状数组。 首先我们搞明白树状数组是用来干嘛的,树状数组是一个查询和修改复杂度都为log(n)的数据结构。主要用于查询任意两位之间的所有元素之和,但是每次只能修改一个元素 ...
分类:
编程语言 时间:
2019-01-25 20:02:06
阅读次数:
166
阅读目录(Content)一. 文件类型1.普通文件1.1 纯文本档(ASCII)1.2 二进制文件(binary)1.3 数据格式文件(data)2.目录文件3.字符设备或块设备文件区块(block)设备档 :字符(character)设备文件:4.数据接口文件(sockets):5.符号链接文件 ...
分类:
系统相关 时间:
2019-01-25 18:41:27
阅读次数:
261