- 博客(6)
- 收藏
- 关注
原创 [LeetCode]Integer Break
Integer Break Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get. For exampl
2016-04-19 14:54:46 903
原创 [LeetCode]LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if
2016-04-18 20:20:51 458
原创 [LeetCode]Power of Four
Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example: Given num = 16, return true. Given num = 5, return false. Follow up: Could you solve it without
2016-04-18 16:08:38 376
原创 [LeetCode]Repeated DNA Sequences
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 identify repeated sequences within the DNA. Wri
2016-04-18 16:03:02 407
原创 [LeetCode]Clone Graph
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separator for each
2016-04-17 21:32:15 342
原创 [LeetCode]Word Ladder II
Word Ladder II Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such that: Only one lette
2016-04-17 19:06:25 427
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人