The kth great numberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others) 【Problem Description】Xiao Ming and Xiao Bao are pl...
分类:
其他好文 时间:
2015-03-08 21:28:52
阅读次数:
199
这道题目使用Map。 然后一次性遍历下来即可。 QAQ注意初始化的时候小心点不要错..Source Code://#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #incl...
分类:
其他好文 时间:
2015-03-08 21:23:54
阅读次数:
134
Plus One问题:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant ...
分类:
其他好文 时间:
2015-03-08 21:22:25
阅读次数:
123
标题:Edit Distance通过率:26.1%难度:难Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counte...
分类:
其他好文 时间:
2015-03-08 20:08:42
阅读次数:
166
#!/usr/bin/expect
set username [lindex $argv 0]
set server_ip [lindex $argv 1]
set command [lindex $argv 2]
set timeout 10
if {$argc
puts stderr "the argument number for execute remot...
分类:
其他好文 时间:
2015-03-08 18:53:06
阅读次数:
161
1.题目Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28 2.解决方案class Solu...
分类:
其他好文 时间:
2015-03-08 18:52:20
阅读次数:
126
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.[Solution] 1 int totalNQuee...
分类:
其他好文 时间:
2015-03-08 15:39:52
阅读次数:
110
Problem Description
It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a string s, we can write down all the non-empty prefixes of this string....
分类:
编程语言 时间:
2015-03-08 14:21:48
阅读次数:
396
uva 10718 Bit Mask
In bit-wise expression, mask is a common term. You can get a certain bit-pattern using mask. For example, if you want to make first 4 bits of a 32-bit number zero, you can us...
分类:
其他好文 时间:
2015-03-08 14:21:22
阅读次数:
186
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] ha...
分类:
其他好文 时间:
2015-03-08 11:49:56
阅读次数:
140