摘要:
LeetCode: Word LadderGiven two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such th... 阅读全文
摘要:
LeetCode: Word LadderGiven two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such th... 阅读全文
摘要:
LeetCode: Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,G... 阅读全文
摘要:
LeetCode: Sum Root to Leaf NumbersGiven a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is t... 阅读全文
摘要:
LeetCode: Surrounded RegionsGiven a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's i... 阅读全文
摘要:
LeetCode: Palindrome PartitionGiven a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome ... 阅读全文
摘要:
LeetCode: Clone GraphClone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serializatio... 阅读全文
摘要:
LeetCode: Gas StationThere are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited ... 阅读全文
摘要:
LeetCode: CandyThere are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to th... 阅读全文
摘要:
LeetCode: Single NumberGiven an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a... 阅读全文
摘要:
LeetCode: Copy List with Random PointerA linked list is given such that each node contains an additional random pointer which could point to any node ... 阅读全文
|