一、数据类型1、二进制类型:(有长度限制,可放800个0、1)格式:binary[(n)] --固定长度的n个字节二进制数据varbinary[(n)] --n个字节变长的二进制数据2、字符数据格式:char[(n)] --固定长度为n的字符型数据varchar[(n)...
分类:
数据库 时间:
2015-01-11 22:59:24
阅读次数:
263
题目:Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.代码:oj测试通过Runtime:178 ms 1 # Definition...
分类:
编程语言 时间:
2015-01-11 20:18:51
阅读次数:
235
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array....
分类:
其他好文 时间:
2015-01-11 17:53:05
阅读次数:
140
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found ...
分类:
其他好文 时间:
2015-01-11 17:51:10
阅读次数:
190
soft binary classification
Logistics回归模型要解决的是分类问题,在之前的二元分类问题中,我们将数据分成正例和负例,但是像PLA算法一样,用单位阶跃函数来处理的这种瞬间跳跃的过程有时很难处理。于是,我们希望能得到正例的概率值是多少。
logistic regression的假设
我们在PLA和线性回归算法中都用数据的加权来计算一个分数...
分类:
其他好文 时间:
2015-01-11 17:50:58
阅读次数:
6277
Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your pr...
分类:
其他好文 时间:
2015-01-11 14:49:29
阅读次数:
95
Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....
分类:
其他好文 时间:
2015-01-11 14:46:32
阅读次数:
160
题目:
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the seque...
分类:
编程语言 时间:
2015-01-11 12:27:43
阅读次数:
282
The problem:Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retu...
分类:
其他好文 时间:
2015-01-11 12:19:10
阅读次数:
172
Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.每次把中间元素当成根节...
分类:
其他好文 时间:
2015-01-11 12:10:19
阅读次数:
137