title:
Largest palindrome product
Problem 4
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91
99.
Find the l...
分类:
其他好文 时间:
2014-06-07 01:24:27
阅读次数:
398
Problem Description:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transa...
分类:
其他好文 时间:
2014-06-05 09:33:52
阅读次数:
342
??
Description
The country is facing a terrible civil war----cities in the country are divided into two parts supporting different leaders. As a merchant, Mr. M does not pay attention to politic...
分类:
其他好文 时间:
2014-06-05 00:16:43
阅读次数:
266
以下通过Simple Serial Interface进行设置,非扫描官方datasheet的设置条码....
分类:
其他好文 时间:
2014-06-03 05:03:16
阅读次数:
219
【题目】
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of the two partitions.
For example,
Given 1->4->3-...
分类:
其他好文 时间:
2014-06-03 00:02:29
阅读次数:
270
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space....
分类:
其他好文 时间:
2014-06-01 10:41:23
阅读次数:
242
【题目】
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 sequence of gray code. A gray code sequence must begin with 0.
...
分类:
其他好文 时间:
2014-06-01 09:16:29
阅读次数:
242
分页bPaginite:true;是否启用分页功能sPaginationType:two_button 或者full_numbers
分页风格sFirst:告诉他第一页怎么写sLast:告诉他最后一页怎么写sNext:告诉他下一页怎么写sPrevious:告诉他上一页怎么写语言"sInfo":"共_...
分类:
Web程序 时间:
2014-05-31 20:58:59
阅读次数:
332
题目一:CombinationsGiven two integersnandk, return all
possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a
solution is:[ [2,4],....
分类:
其他好文 时间:
2014-05-31 20:01:02
阅读次数:
455
Problem StatementIn the Republic of Nlogonia
there are N cities. For convenience, the cities are numbered 0 through N-1. For
each two different cities...
分类:
其他好文 时间:
2014-05-31 00:47:40
阅读次数:
364