1. 二分搜索 使用需包含头文件 #include<algorithm> 容器内元素需要非严格递增,区间为[first,last),comp为可选比较函数; (1)binary_search(first,last,val,comp); 二分查找val是否存在; 找到返回true,否则返回false; ...
分类:
编程语言 时间:
2018-05-07 16:08:15
阅读次数:
156
EKO - Eko #binary-search #binary-search Lumberjack Mirko needs to chop down M metres of wood. It is an easy job for him since he has a nifty new woodc ...
分类:
其他好文 时间:
2018-05-06 12:20:03
阅读次数:
204
`Python` 二叉堆(binary heap) 二叉堆是一种特殊的堆,二叉堆是完全二叉树或者是近似完全二叉树。二叉堆满足堆特性:父节点的键值总是保持固定的序关系于任何一个子节点的键值,且每个节点的左子树和右子树都是一个二叉堆。 当父节点的键值总是大于或等于任何一个子节点的键值时为最大堆。 当父节 ...
分类:
编程语言 时间:
2018-05-06 10:40:22
阅读次数:
738
设计表时使用BINARY CREATE TABLE user_info ( login_name VARCHAR(20) BINARY ); 查询时会自动区分大小写 查询时区分大小写 SELECT `name`,login_name FROM user_info WHERE BINARY login ...
分类:
数据库 时间:
2018-05-05 17:18:05
阅读次数:
168
相关知识点总结 泛型类声明: 创建链表 向链表增加节点 从链表中删除节点 LinkedList泛型类实现Lis泛型接口中的一些常用方法 public boolean add(E element) 向链表末尾添加一个新的节点,该节点中的数据是参数elememt指定的数据。 public void ad ...
分类:
其他好文 时间:
2018-05-05 16:50:35
阅读次数:
206
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...
分类:
其他好文 时间:
2018-05-05 15:30:22
阅读次数:
260
做CTF题需要这工具来提取文件里的隐藏文件, 网上大部分是linux版本,之前好不容易找了一个exe文件结果还不能用。找了很长时间终于找到了: https://github.com/raddyfiy/foremost 用这个原代码你自己就可以编译出exe,如果懒得编译的话里面的binary里就有编译 ...
分类:
Windows程序 时间:
2018-05-05 13:19:21
阅读次数:
7598
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...
分类:
其他好文 时间:
2018-05-05 10:20:56
阅读次数:
200
Given a Binary Search Tree (BST) with root node root, and a target value V, split the tree into two subtrees where one subtree has nodes that are all ...
分类:
其他好文 时间:
2018-05-05 00:27:34
阅读次数:
739
要求: 汉字:GBK内码 西文:ASCII码 间隔符: 转码:(对西文进行转ASCII码) 以GBK方式通过二进制形式写入文件: 文件二进制查看:工具(Binary Viewer) 其中 01 为 0x01,对应上面的 字段间隔符 (域间隔符) 0A为0x0A,对应上面的 行间隔符 此内容谨记录工作 ...
分类:
其他好文 时间:
2018-05-04 19:31:07
阅读次数:
175