Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
E...
分类:
其他好文 时间:
2014-10-26 15:38:41
阅读次数:
196
DP、KMP什么的都太高大上了,自己想了个朴素的遍历方法。
【题目】
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palin...
分类:
其他好文 时间:
2014-10-26 15:37:32
阅读次数:
249
题目:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or eq...
分类:
编程语言 时间:
2014-10-26 00:21:33
阅读次数:
216
Write a program to solve a Sudoku puzzle by filling the empty cells.
Empty cells are indicated by the character '.'.
You may assume that there will be only one unique solution.
A sudoku...
分类:
其他好文 时间:
2014-10-25 17:27:41
阅读次数:
232
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....
分类:
其他好文 时间:
2014-10-25 17:23:51
阅读次数:
131
题目:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be...
分类:
其他好文 时间:
2014-10-25 00:46:35
阅读次数:
227
Radar Installation
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 54143
Accepted: 12178
Description
Assume the coasting is an infinite straight line. La...
分类:
其他好文 时间:
2014-10-24 16:37:32
阅读次数:
262
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
Find the minimum element.
You may assume no duplicate exists in...
分类:
其他好文 时间:
2014-10-24 13:06:25
阅读次数:
224
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
Find the minimum element.
You may assume no duplicate exists in the ar...
分类:
其他好文 时间:
2014-10-22 12:57:45
阅读次数:
120
;实验报告内容,输入一个字符串,去掉数字,输出ASSUME DS:DATA,CS,CDOE,SS,STACKDATA SEGMENT MAXLEN DB 15 INPUTLEN DB 0 STR1 DB 15 DUP(0) STR2 DB 15 DUP(0)DATA ENDS...
分类:
其他好文 时间:
2014-10-20 13:17:13
阅读次数:
198