
leetcode
wuhuancheng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode | 2) Add Two Numbers
题目You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a lin原创 2016-10-02 18:03:16 · 451 阅读 · 0 评论 -
LeetCode | 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 be O(log (m+n)).Example 1: nums1 = [1, 3]原创 2016-10-04 12:59:58 · 379 阅读 · 0 评论 -
LeetCode | 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 “pwwkew”, the answer is “w原创 2016-10-03 15:48:05 · 259 阅读 · 0 评论 -
LeetCode | 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.*原创 2016-10-02 15:51:02 · 322 阅读 · 0 评论 -
LeetCode | 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, and there exists one unique longest palindromic substring.Prototypeclass Solution {原创 2016-10-04 16:29:02 · 273 阅读 · 0 评论 -
LeetCode | 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 - - - NA原创 2016-10-04 18:31:29 · 287 阅读 · 0 评论 -
LeetCode | 7)Reverse Integer
题目Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. Bonus points for you原创 2016-10-04 23:19:01 · 420 阅读 · 0 评论 -
LeetCode | 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 yourself what are the possible input ca原创 2016-10-05 01:08:34 · 318 阅读 · 0 评论