题目描述:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime compl...
分类:
其他好文 时间:
2014-09-30 00:53:01
阅读次数:
216
JDK 8 ReleasedMost of us won’t be able to use/deploy JDK 8 in production for a looong time. But that shouldn’t stop us from using it, right?It should ...
分类:
其他好文 时间:
2014-09-29 11:49:37
阅读次数:
147
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. Y...
分类:
其他好文 时间:
2014-09-29 01:40:57
阅读次数:
297
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. Y...
分类:
其他好文 时间:
2014-09-28 14:33:56
阅读次数:
178
Basic Knowlege points:1: it's necessary that there is only one public class in per .java file2: .java file name should better to same as class name3: ...
分类:
编程语言 时间:
2014-09-28 13:23:52
阅读次数:
313
Problem Description
A range is given, the begin and the end are both integers. You should sum the cube of all the integers in the range.
Input
The first line of the input is T(1
Each...
分类:
其他好文 时间:
2014-09-28 01:35:40
阅读次数:
151
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-09-27 23:31:00
阅读次数:
186
题目描述:Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime...
分类:
其他好文 时间:
2014-09-27 18:53:40
阅读次数:
204
a letter and a number
时间限制:3000 ms | 内存限制:65535 KB
难度:1
描述we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26;
Give you a letter x and a number y , you should o...
分类:
其他好文 时间:
2014-09-27 10:42:09
阅读次数:
184
If you accidentally added some files which should have been ignored, how do you get them out of version control without losing them? Maybe you have yo...
分类:
其他好文 时间:
2014-09-26 18:36:28
阅读次数:
141