上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message con... Read More
posted @ 2014-08-13 11:10 Xylophone Views(186) Comments(0) Diggs(0)
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order... Read More
posted @ 2014-08-12 22:43 Xylophone Views(128) Comments(0) Diggs(0)
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->... Read More
posted @ 2014-08-12 22:05 Xylophone Views(96) Comments(0) Diggs(0)
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... Read More
posted @ 2014-08-12 21:27 Xylophone Views(254) Comments(0) Diggs(0)
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... Read More
posted @ 2014-08-12 09:49 Xylophone Views(152) Comments(0) Diggs(0)
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example, [1,1,2] have the following unique pe... Read More
posted @ 2014-08-12 09:04 Xylophone Views(140) Comments(0) Diggs(0)
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic... Read More
posted @ 2014-08-11 22:05 Xylophone Views(137) Comments(0) Diggs(0)
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers.... Read More
posted @ 2014-08-11 21:16 Xylophone Views(122) Comments(0) Diggs(0)
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ... Read More
posted @ 2014-08-11 20:38 Xylophone Views(129) Comments(0) Diggs(0)
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example, Given n = 3, your program should return all... Read More
posted @ 2014-08-06 21:56 Xylophone Views(171) Comments(0) Diggs(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页