Brute force solution:Iterate 32 times, each time determining if the ith bit is a ’1′ or not. This is probably the easiest solution, and the interviewe...
分类:
其他好文 时间:
2014-10-12 06:43:57
阅读次数:
219
Air Raid
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 6763
Accepted: 4034
Description
Consider a town where all the streets are one-way and each stree...
分类:
其他好文 时间:
2014-10-12 02:05:37
阅读次数:
220
Problem Description
A sequence consisting of one digit, the number 1 is initially written into a computer. At each successive time step, the computer simultaneously tranforms each digit 0 into the...
分类:
其他好文 时间:
2014-10-11 20:04:56
阅读次数:
221
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where width o...
分类:
其他好文 时间:
2014-10-11 17:54:45
阅读次数:
147
Going Home
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18169
Accepted: 9268
Description
On a grid map there are n little men and n houses. In each un...
分类:
其他好文 时间:
2014-10-11 17:43:45
阅读次数:
189
Remove Duplicates from Sorted List I
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3...
分类:
其他好文 时间:
2014-10-11 16:50:15
阅读次数:
206
Remove Duplicates from Sorted Array I
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for an...
分类:
其他好文 时间:
2014-10-11 16:19:56
阅读次数:
140
这个问题是C中的一个深坑,首先说结论:
char ** 和 const char ** 是两个不相容(incompatible)的类型,可以理解为不能直接赋值
在C11的6.5.2.2 Function calls中有如下内容
Each argument shall have a type such that its value...
分类:
编程语言 时间:
2014-10-11 16:12:45
阅读次数:
173
eclipse主题 更改Color Theme http://eclipsecolorthemes.org/下载color theme。 Each theme can be downloaded in two formats, *.xml and *.epf. You can either install the Eclipse Color Theme plugin and ...
分类:
系统相关 时间:
2014-10-11 14:01:26
阅读次数:
266
源代码:简写后:$(function(){ $(".btn:lt(2)").each(function(i){ $(this).on("click",function(){ $(".layer:eq("+i+")").show(); }); ...
分类:
Web程序 时间:
2014-10-11 12:28:25
阅读次数:
215