Problem Description
The Princess has been abducted by the BEelzebub feng5166, our hero Ignatius has to rescue our pretty Princess. Now he gets into feng5166's castle. The castle is a large labyrinth. To make the problem simply, we assume the labyrinth is a...
分类:
其他好文 时间:
2015-03-04 11:12:13
阅读次数:
201
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-03-04 09:44:51
阅读次数:
122
A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key ...
分类:
其他好文 时间:
2015-03-04 06:12:50
阅读次数:
170
Assume s is a string of lower case characters.
Write a program that prints the longest substring of s in which the letters occur in alphabetical order. For example, if s = 'azcbobobegghakl', then y...
分类:
编程语言 时间:
2015-03-03 22:17:49
阅读次数:
805
Assume s is a string of lower case characters.Write a program that prints the longest substring of s in which the letters occur in alphabetical order....
分类:
编程语言 时间:
2015-03-03 18:11:29
阅读次数:
376
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M
Angel's friends want to save Angel. Their task is: approach Angel. We assume that "approa...
分类:
其他好文 时间:
2015-03-03 11:49:06
阅读次数:
185
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target.
Return the sum of the three integers. You may assume that each input would have exact...
分类:
其他好文 时间:
2015-03-03 09:54:43
阅读次数:
119
Vasya became interested in bioinformatics. He's going to write an article about similar cyclic DNA sequences, so he invented a new method for determining the similarity of cyclic sequences.
Let's assume that...
分类:
其他好文 时间:
2015-03-02 21:02:32
阅读次数:
313
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...
分类:
其他好文 时间:
2015-03-02 14:53:12
阅读次数:
135
题目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 equal to m + n) to hold additional elements from B. T...
分类:
其他好文 时间:
2015-03-02 11:19:23
阅读次数:
148