DescriptionGiven a node from a cyclic linked list which has been sorted, write a function to insert a value into the list such that it remains a cycli ...
分类:
其他好文 时间:
2017-05-19 10:08:28
阅读次数:
216
题目: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each ...
分类:
其他好文 时间:
2017-05-17 23:41:37
阅读次数:
288
题目: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same re ...
分类:
其他好文 时间:
2017-05-17 23:32:59
阅读次数:
228
题目: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Exampl ...
分类:
其他好文 时间:
2017-05-17 22:09:47
阅读次数:
228
题目: 题解: Solution 1 () Solution 1.2 Solution 2 () Bit Manipulation This is the most clever solution that I have seen. The idea is that to give all the ...
分类:
其他好文 时间:
2017-05-17 20:03:55
阅读次数:
176
题目: Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. How we serialize an undirected graph: Nodes are la ...
分类:
其他好文 时间:
2017-05-15 23:42:03
阅读次数:
364
Given an array A of integer with size of n( means n books and number of pages of each book) and k people to copy the book. You must distribute the con ...
分类:
其他好文 时间:
2017-05-15 10:02:31
阅读次数:
192
Problem Given a 2D grid, each cell is either a wall 2, an house 1 or empty 0 (the number zero, one, two), find the place to build a post office, the d ...
分类:
其他好文 时间:
2017-05-15 09:48:26
阅读次数:
296
DescriptionGiven a 2D grid, each cell is either a wall 2, a zombie 1 or people 0 (the number zero, one, two).Zombies can turn the nearest people(up/do ...
分类:
其他好文 时间:
2017-05-14 12:22:11
阅读次数:
357
DescriptionGiven a undirected graph, a node and a target, return the nearest node to given node which value of it is target, return NULL if you can't ...
分类:
其他好文 时间:
2017-05-14 01:16:38
阅读次数:
247