原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:
其他好文 时间:
2014-08-26 00:14:25
阅读次数:
334
In one well-known algorithm of finding the k-th order statistics we should divide all elements into groups of five consecutive elements and find the median
of each five. A median is called the middl...
分类:
其他好文 时间:
2014-08-25 22:50:55
阅读次数:
297
An index is used to speed up searching in the database.By default, when you create this table, your data will be stored on disk and sorted by the "Id"...
分类:
数据库 时间:
2014-08-25 22:30:34
阅读次数:
407
Search in Rotated Sorted Array
Total Accepted: 22300 Total
Submissions: 77945My Submissions
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 ...
分类:
其他好文 时间:
2014-08-25 21:15:35
阅读次数:
227
Query
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 2595 Accepted Submission(s): 860
Problem Description
You are given two s...
分类:
其他好文 时间:
2014-08-25 21:12:44
阅读次数:
281
Description
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication,
exponenti...
分类:
其他好文 时间:
2014-08-25 21:11:14
阅读次数:
183
Redis 服务器Remote Dictionay Server Redis是一个key-value持久化产品,通常被称为数据结构服务器。Redis的key是string类型;value可以是string、hash、list、set、sorted set等类型;实际上,Redis内部会将key和va...
分类:
其他好文 时间:
2014-08-25 20:46:54
阅读次数:
673
Description
Given a base b and two non-negative base b integers p and m, compute p mod m and print the result as a base b integer. p mod m is defined as the smallest non-negative integer k such tha...
分类:
编程语言 时间:
2014-08-25 19:20:04
阅读次数:
230
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.思路: 1 cla...
分类:
其他好文 时间:
2014-08-25 18:38:04
阅读次数:
211
Description
Problem C
Polynomial GCD
Input: standard input
Output: standard output
Given two polynomials f(x) and g(x) in
Zn, you have to find their GCD polynomial, ie, a polynomial
r(x)...
分类:
其他好文 时间:
2014-08-25 17:09:34
阅读次数:
209