[leetcode]Search in Rotated Sorted Array...
分类:
其他好文 时间:
2014-09-18 11:32:53
阅读次数:
190
[leetcode]Remove Duplicates from Sorted Array II...
分类:
其他好文 时间:
2014-09-18 11:30:53
阅读次数:
150
[leetcode]Search in Rotated Sorted Array II...
分类:
其他好文 时间:
2014-09-18 11:26:23
阅读次数:
167
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-...
分类:
其他好文 时间:
2014-09-18 05:24:13
阅读次数:
195
Sort a linked list in O(n log n) time using constant space complexity.记得Insert Sort List, 那个复杂度是O(N^2)的,这里要求O(nlogn),所以想到merge sort, 需要用到Merge Two Sor...
分类:
其他好文 时间:
2014-09-18 01:57:43
阅读次数:
199
求2个数组的中位数方法很多但是时间复杂度各异1利用数组copy方法先融合两个数组,然后排序,找出中位数import java.lang.reflect.Array;import java.util.Arrays;import java.util.Collection;import java.util...
分类:
编程语言 时间:
2014-09-18 00:41:02
阅读次数:
222
[leetcode]Remove Duplicates from Sorted Array...
分类:
其他好文 时间:
2014-09-17 21:54:52
阅读次数:
199
今天在用Hibernate对对象进行修改操作的时候报了这个错。之前一直没什么错误,但是今天修改了一下表结构,增加了一个OneToMany的映射。所以在我获取对象,重新set一个变量之后就报了这个错误了。Illegal attempt to associate a collection with tw...
分类:
系统相关 时间:
2014-09-17 20:04:32
阅读次数:
324
//this is a program witch played by two people
//二人游戏,若第一个抛骰子,抛两次的和为7或11则第一人直接胜利,第二人直接失败
//若第一个人抛骰子,抛两次的和为2,3或12,则第一个人直接失败,第二人胜利
//若第一个人抛筛子,抛两次的和以上均不是,则由第二个人抛,直到有一方胜利
#include
#include
#include //...
分类:
编程语言 时间:
2014-09-17 16:56:42
阅读次数:
260
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 ord...
分类:
其他好文 时间:
2014-09-17 13:31:02
阅读次数:
144