- 博客(17)
- 收藏
- 关注
原创 17. Letter Combinations of a Phone Number
https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could repre...
2018-05-28 22:07:47 60
原创 16. 3Sum Closest
https://leetcode.com/problems/3sum-closest/description/Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of th...
2018-05-28 21:26:27 51
原创 15. 3Sum
https://leetcode.com/problems/3sum/description/Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum ...
2018-05-22 23:22:37 65
原创 14. Longest Common Prefix
https://leetcode.com/problems/longest-common-prefix/description/Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty stri...
2018-05-22 22:49:15 70
原创 13. Roman to Integer
https://leetcode.com/problems/roman-to-integer/description/Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol Value I 1 V 5 X ...
2018-05-22 22:39:31 47
原创 12. Integer to Roman
https://leetcode.com/problems/integer-to-roman/description/Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol Value I 1 V 5 X ...
2018-05-22 22:31:54 228
转载 11. Container With Most Water
https://leetcode.com/problems/container-with-most-water/description/Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such ...
2018-05-22 22:07:00 75
转载 10. Regular Expression Matching
https://leetcode.com/problems/regular-expression-matching/description/Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.'.' Matches any si...
2018-05-22 21:42:57 76
原创 9. Palindrome Number
https://leetcode.com/problems/palindrome-number/description/Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Input: 121 Output: trueI...
2018-05-21 23:29:51 70
原创 8. String to Integer (atoi)
https://leetcode.com/problems/string-to-integer-atoi/description/Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the f...
2018-05-21 23:13:46 88
原创 7. Reverse Integer
https://leetcode.com/problems/reverse-integer/description/Given a 32-bit signed integer, reverse digits of an integer.Input: 123 Output: 321Input: -123 Output: -321Input: 120 Output: 21Note:Assume we ...
2018-05-21 17:56:33 61
原创 6. ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H N A P L S I I G ...
2018-05-21 17:45:10 65
原创 5. Longest Palindromic Substring
https://leetcode.com/problems/longest-palindromic-substring/description/Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Input: "babad...
2018-05-19 00:43:26 64
转载 4. Median of Two Sorted Arrays
https://leetcode.com/problems/median-of-two-sorted-arrays/description/There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run...
2018-05-18 01:26:33 61
原创 3. Longest Substring Without Repeating Characters
https://leetcode.com/problems/longest-substring-without-repeating-characters/description/Given a string, find the length of the longest substring without repeating characters.Given "abcabcbb", the an...
2018-05-16 17:38:32 70
原创 2. Add Two Numbers
https://leetcode.com/problems/add-two-numbers/description/You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their node...
2018-05-16 17:08:53 87
原创 1. Two Sum
https://leetcode.com/problems/two-sum/description/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 exa...
2018-05-16 16:24:07 59
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人