Description
A diamond puzzle is played on a tessellated hexagon like the one shown in Figure 1 below. And in this problem the faces produced by the tessellation are identified as they are numbered ...
分类:
其他好文 时间:
2014-08-07 23:03:25
阅读次数:
348
Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a lin...
分类:
其他好文 时间:
2014-08-07 23:00:14
阅读次数:
275
Ikki's Story IV - Panda's Trick
Time Limit: 1000MS
Memory Limit: 131072K
Total Submissions: 7841
Accepted: 2900
Description
liympanda, one of Ikki’s friend, likes p...
分类:
其他好文 时间:
2014-08-07 19:16:01
阅读次数:
316
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m =
2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy t...
分类:
其他好文 时间:
2014-08-07 19:02:50
阅读次数:
251
Problem Description
I’ve bought an orchard and decide to plant some apple trees on it. The orchard seems like an N * M two-dimensional map. In each grid, I can either plant an apple tree to get one a...
分类:
移动开发 时间:
2014-08-07 18:59:10
阅读次数:
293
Get Luffy Out
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 7456
Accepted: 2835
Description
Ratish is a young man who always dreams of being a hero. One ...
分类:
其他好文 时间:
2014-08-07 18:55:20
阅读次数:
286
Transposed MatrixIn linear algebra, the transpose of a matrixAis another matrixAT(also writtenA′,Atr,tAorAt) created by any one of the following equiv...
分类:
其他好文 时间:
2014-08-07 18:52:40
阅读次数:
242
题目:Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible represent....
分类:
编程语言 时间:
2014-08-07 05:11:29
阅读次数:
334
In one embodiment, the present invention includes a directory to aid in maintaining control of a cache coherency protocol. The directory can be couple...
分类:
数据库 时间:
2014-08-07 00:42:27
阅读次数:
496
问题:数组模拟整数加1class Solution {public: vector plusOne(vector &digits) { int i,k=0; int a[100]; for(i=digits.size()-1;i>=0;i--) ...
分类:
其他好文 时间:
2014-08-06 22:20:12
阅读次数:
187