int binary_search(int* a, int len, int goal) { int low = 0;int high = len -1; while (low goal) high = middle - 1; //在右半边 else low = middle + 1; } ... ...
分类:
其他好文 时间:
2017-10-03 11:21:39
阅读次数:
140
Given a binary tree, generate all root to leaf paths of a binary tree. Example: Example Tree The output for the above example is [[1, 2, 4], [1, 2, 5] ...
分类:
其他好文 时间:
2017-10-03 00:52:30
阅读次数:
187
1099. Build A Binary Search Tree (30) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue 时间限制 100 ms 时间限制 100 ms 内存限制 65536 kB 内存限制 6 ...
分类:
其他好文 时间:
2017-10-03 00:24:53
阅读次数:
220
1064. Complete Binary Search Tree (30) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue 时间限制 100 ms 时间限制 100 ms 内存限制 65536 kB 内存限制 ...
分类:
其他好文 时间:
2017-10-03 00:24:35
阅读次数:
205
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. ...
分类:
其他好文 时间:
2017-10-02 20:54:36
阅读次数:
133
转自:http://alexkong.net/2013/06/introduction-to-auc-and-roc/ ROC(Receiver Operating Characteristic)曲线和AUC常被用来评价一个二值分类器(binary classifier)的优劣,对两者的简单介绍见[ ...
分类:
其他好文 时间:
2017-10-02 13:06:51
阅读次数:
234
Visible Trees HDU - 2841 Visible Lattice Points SPOJ - VLATTICE ...
分类:
其他好文 时间:
2017-10-02 12:19:09
阅读次数:
124
Java 的三个技术平台 :JavaSE , JavaEE ,JavaME JDK: Java Development Kit ,是整个java的核心,包括java编译器,运行工具等 JRE: Java Runtime Enviroment , java的运行环境 path:用来存储java的编译和 ...
分类:
编程语言 时间:
2017-10-01 23:03:41
阅读次数:
265
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, given the following ma ...
分类:
其他好文 时间:
2017-10-01 21:09:40
阅读次数:
107
第一次动手写二叉树的,有点小激动,64行的if花了点时间,上传leetcode一次点亮~~~ 1 /* inorder traversal binary tree */ 2 #include 3 #include 4 5 6 struct TreeNode { 7 int val; 8 struct... ...
分类:
其他好文 时间:
2017-10-01 14:25:12
阅读次数:
159