MySql支持多种数据类型,主要有数值类型、日期/时间类型和字符串类型。 数值数据类型:包括整数类型TINYINT、SMALLINT、MEDIUMINT、INT、BIGINT、浮点小数数据类型FLOAT和DOUBLE,定点小数类型DECIMAL。 日期/时间类型:包括YEAR、TIME、DATE、D ...
分类:
数据库 时间:
2019-01-24 21:53:08
阅读次数:
174
题目链接 https://leetcode.com/problems/validate binary search tree/ 题意 判断给定树是否是BST 思路 根据定义判断。递归。 代码 ...
分类:
其他好文 时间:
2019-01-24 20:15:37
阅读次数:
161
Rendezvous Hashing Rendezvous or highest random weight (HRW) hashing is an algorithm that allows clients to achieve distributed agreement on a set of ...
分类:
其他好文 时间:
2019-01-24 20:06:48
阅读次数:
171
转自:http://blog.csdn.net/byxdaz/archive/2009/12/01/4912136.aspx 检测直线:cvHoughLines,cvHoughLines2 检测圆:cvHoughCircles 检测矩形:opencv中没有对应的函数,下面有段代码可以检测矩形,是通过 ...
分类:
其他好文 时间:
2019-01-24 18:54:55
阅读次数:
135
1115 Counting Nodes in a BST (30 分) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left su ...
分类:
其他好文 时间:
2019-01-23 15:34:14
阅读次数:
143
LeetCode 33 Search in Rotated Sorted Array [binary search] 给出排序好的一维无重复元素的数组,随机取一个位置断开,把前半部分接到后半部分后面,得到一个新数组,在新数组中查找给定数的下标,如果没有,返回 1。时间复杂度限制$O(log_2n)$ ...
分类:
编程语言 时间:
2019-01-23 13:57:36
阅读次数:
173
1064 Complete Binary Search Tree (30 分) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The lef ...
分类:
其他好文 时间:
2019-01-23 13:52:10
阅读次数:
197
1102 Invert a Binary Tree (25 分) The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but yo ...
分类:
其他好文 时间:
2019-01-22 23:05:08
阅读次数:
334
A binary tree is univalued if every node in the tree has the same value. Return true if and only if the given tree is univalued. Example 1: Example 2: ...
分类:
其他好文 时间:
2019-01-22 22:55:19
阅读次数:
232