1.题目描述 Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tr ...
分类:
其他好文 时间:
2018-02-10 00:04:37
阅读次数:
152
1.insert_select 的使用:从一个表复制数据给另一个表 INSERT INTO students(name,sex,LikeBooksNUM,LikesportNUM,average) SELECT name,sex,LikeBooksNUM,LikesportNUM,averageFR ...
分类:
数据库 时间:
2018-02-09 23:55:58
阅读次数:
225
14.浮点数算法:争议和限制 浮点数在计算机中表达为二进制(binary)小数。例如:十进制小数: 是 1/10 + 2/100 + 5/1000 的值,同样二进制小数: 是 0/2 + 0/4 + 1/8。这两个数值相同。唯一的实质区别是第一个写为十进制小数记法,第二个是二进制。 不幸的是,大多数 ...
分类:
编程语言 时间:
2018-02-09 23:54:49
阅读次数:
231
Question: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in whi ...
分类:
其他好文 时间:
2018-02-09 22:17:24
阅读次数:
147
LeetCode:二叉树相关应用 基础知识 617.归并两个二叉树 题目 Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees ...
分类:
其他好文 时间:
2018-02-08 19:59:35
阅读次数:
112
https://software.intel.com/en-us/articles/pin-a-binary-instrumentation-tool-downloads Introduction to Intel Pin Introduction to Intel Pin Original art ...
分类:
其他好文 时间:
2018-02-08 17:47:06
阅读次数:
176
wget https://github.com/wsgzao/sersync/raw/master/sersync2.5.4_64bit_binary_stable_final.tar.gz把之前做的inotify停掉监控的事件
分类:
系统相关 时间:
2018-02-08 13:30:34
阅读次数:
169
1.题目描述 Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurall ...
分类:
其他好文 时间:
2018-02-08 00:35:09
阅读次数:
138
1.题目描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 判断输入的树杈是否是镜像结构 2.题目分析 判断给出的树杈每一级对应的左节点与右节点是否相同 3 ...
分类:
其他好文 时间:
2018-02-08 00:27:18
阅读次数:
191
1.在一个递增的数组(或vector)中查找元素属于[ s , e ) 的下标 2.查找递增数组中元素是否存在 使用binary_search 注: 对于结构体,要么重载小于符号: ①bool operator<=(const point b) const ②要么定义有小于符号含义的cmp函数。 ...
分类:
其他好文 时间:
2018-02-07 21:30:12
阅读次数:
224