![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 413 阅读 · 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 · 344 阅读 · 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 · 223 阅读 · 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 · 280 阅读 · 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 · 242 阅读 · 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 · 252 阅读 · 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 · 382 阅读 · 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 · 282 阅读 · 0 评论