leetcode
felonny
这个作者很懒,什么都没留下…
展开
-
12. Integer to Roman
Integer to Roman原创 2017-03-17 22:49:33 · 137 阅读 · 0 评论 -
5. Longest Palindromic Substring
5. Longest Palindromic Substring原创 2017-03-16 13:13:22 · 301 阅读 · 0 评论 -
433. Minimum Genetic Mutation
A gene string can be represented by an 8-character long string, with choices from “A”, “C”, “G”, “T”.Suppose we need to investigate about a mutation (mutation from “start” to “end”), where ONE mutation原创 2017-03-15 21:07:19 · 927 阅读 · 0 评论 -
458. Poor Pigs
There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drinks that poison it will die within 15 minutes. What is the minimum原创 2017-03-16 10:56:32 · 447 阅读 · 0 评论 -
518. Coin Change 2
518.Coin Change2原创 2017-03-16 13:03:41 · 639 阅读 · 0 评论 -
482. License Key Formatting
482. License Key Formatting原创 2017-03-16 13:09:28 · 253 阅读 · 0 评论 -
516. Longest Palindromic Subsequence
Longest Palindromic Subsequence原创 2017-03-15 20:49:39 · 313 阅读 · 0 评论 -
3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the length is 3. Given "bbbbb", the answer is "原创 2017-03-15 13:22:34 · 239 阅读 · 0 评论 -
2. Add Two Numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return i原创 2017-03-15 12:44:57 · 337 阅读 · 0 评论 -
1.TwoSum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the sam原创 2017-03-15 11:48:01 · 154 阅读 · 0 评论 -
9. Palindrome Number
9.Palindrome Number原创 2017-03-17 11:53:30 · 183 阅读 · 0 评论 -
6. ZigZag Conversion
6. ZigZag Conversion原创 2017-03-16 14:14:27 · 149 阅读 · 0 评论 -
7. Reverse Integer
7. Reverse Integer原创 2017-03-16 14:34:54 · 222 阅读 · 0 评论 -
13.Roman to Integer
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.原创 2017-03-17 23:02:19 · 149 阅读 · 0 评论 -
14. Longest Common Prefix
找到最长公共前缀原创 2017-03-18 12:51:36 · 165 阅读 · 0 评论 -
15. 3Sum
3Sum原创 2017-03-18 13:42:23 · 153 阅读 · 0 评论 -
16. 3Sum Closest
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. You may assume that each input would have exactly原创 2017-03-18 13:48:27 · 185 阅读 · 0 评论 -
17. Letter Combinations of a Phone Number
17. Letter Combinations of a Phone Number原创 2017-03-18 14:11:56 · 150 阅读 · 0 评论 -
18. 4Sum
4Sum原创 2017-03-18 16:13:40 · 185 阅读 · 0 评论 -
19. Remove Nth Node From End of List
ListNode原创 2017-03-18 16:35:05 · 137 阅读 · 0 评论 -
20. Valid Parentheses
Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The brackets must close in the correct order, “()” and “()[]{}” are all valid but “原创 2017-03-18 16:50:10 · 190 阅读 · 0 评论 -
21. Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Subscribe to see which companies asked this question.public原创 2017-03-24 10:22:14 · 207 阅读 · 0 评论 -
8. String to Integer (atoi)
8.StringtoInteger原创 2017-03-16 15:25:01 · 257 阅读 · 0 评论 -
11. Container With Most Water
ContainerWith Most Water原创 2017-03-17 12:32:38 · 166 阅读 · 0 评论