题目:
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 numbers such that they add up to the target, ...
分类:
其他好文 时间:
2014-12-15 23:37:57
阅读次数:
224
A path to the file is constructed by merely adding a URI to the value of therootdirective. If a URI has to be modified, thealiasdirective should be us...
分类:
其他好文 时间:
2014-12-15 23:16:01
阅读次数:
389
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:
其他好文 时间:
2014-12-15 21:46:00
阅读次数:
229
Write a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a simple coded ...
分类:
编程语言 时间:
2014-12-15 16:46:15
阅读次数:
225
ref:http://stackoverflow.com/questions/271743/whats-the-difference-between-b-and-strong-i-and-emThey have thesame effect on normal web browser renderi...
分类:
Web程序 时间:
2014-12-14 15:47:08
阅读次数:
297
题目
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 numbers such that they add up to the tar...
分类:
其他好文 时间:
2014-12-13 16:34:35
阅读次数:
169
题目为:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without...
分类:
其他好文 时间:
2014-12-12 23:39:44
阅读次数:
473
题目
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain ...
分类:
其他好文 时间:
2014-12-12 19:06:05
阅读次数:
133
【题目】
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 ...
分类:
其他好文 时间:
2014-12-12 11:44:41
阅读次数:
125
开闭原则的描述是:Software entities (classes, modules, functions, etc.) should be open for extension but closed for modification.软件实体(类,模块,方法等等)应当对扩展开放,对修改关闭,即...
分类:
其他好文 时间:
2014-12-12 11:30:18
阅读次数:
235