- 博客(49)
- 收藏
- 关注
原创 2017-09-08 LeetCode_009 Palindrome Number
9. Palindrome Number Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you a
2017-09-08 17:36:16
150
原创 2017-09-08 LeetCode_008 String to Integer (atoi)
8. String to Integer (atoi) Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourse
2017-09-08 17:06:58
166
原创 2017-09-08 LeetCode_007 Reverse Integer
7. Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here are some good quest
2017-09-08 16:34:49
151
原创 2017-09-08 LeetCode_006 ZigZag Conversion
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 legibilit
2017-09-08 13:52:56
163
原创 2017-09-07 LeetCode_005 Longest Palindromic Substring
5. Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Input: "babad" Output: "bab"
2017-09-07 17:10:44
172
原创 2017-09-07 LeetCode_003 Longest Substring Without Repeating Characters
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", w
2017-09-07 16:48:38
189
原创 2017-09-07 LeetCode_004 Median of Two Sorted Arrays
4. Median of Two Sorted Arrays 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 time complexity should
2017-09-07 16:44:15
149
原创 2017-09-07 LeetCode_002 Add Two Numbers
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 th
2017-09-07 15:38:27
214
原创 2017-09-07 LeetCode_001 Two Sum
1. Two Sum 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
2017-09-07 14:57:09
192
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人