摘要:
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ... 阅读全文
posted @ 2015-03-16 22:05
Eason Liu
阅读(152)评论(0)推荐(0)
编辑
摘要:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t... 阅读全文
posted @ 2015-03-15 00:43
Eason Liu
阅读(157)评论(0)推荐(0)
编辑
摘要:
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit in... 阅读全文
posted @ 2015-03-10 22:48
Eason Liu
阅读(136)评论(0)推荐(0)
编辑
摘要:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
posted @ 2015-03-07 23:13
Eason Liu
阅读(154)评论(0)推荐(0)
编辑
摘要:
All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to ... 阅读全文
posted @ 2015-03-07 21:11
Eason Liu
阅读(1791)评论(1)推荐(0)
编辑
摘要:
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ... 阅读全文
posted @ 2015-03-07 21:00
Eason Liu
阅读(1428)评论(0)推荐(0)
编辑
摘要:
Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled uniq... 阅读全文
posted @ 2015-01-22 16:35
Eason Liu
阅读(159)评论(0)推荐(0)
编辑