![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
凌晨i
这个作者很懒,什么都没留下…
展开
-
LeetCode 3. Longest Substring Without Repeating Characters
Problem: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...原创 2018-03-30 18:06:26 · 137 阅读 · 0 评论 -
LeetCode 6. ZigZag Conversion
Problem: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...原创 2018-04-08 17:09:24 · 126 阅读 · 0 评论 -
LeetCode 4. Median of Two Sorted Arrays(详解)
Problem: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:nu...原创 2018-04-03 15:26:06 · 207 阅读 · 0 评论 -
LeetCode 5. Longest Palindromic Substring
这个算法,答案请看 经典算法(一)之回文接下来,我将里面的答案解释一下。Problem: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: "ba...原创 2018-04-03 17:39:01 · 186 阅读 · 0 评论 -
LeetCode(1):Two Sum
Problem: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 u...原创 2018-03-29 15:00:07 · 136 阅读 · 0 评论 -
LeetCode(2):Add Two Numbers
Problem:You are given two non-empty linked lists representing two non-negative integers. The digitsare stored in reverse order and each of their nodes contain a single digit. Add the twonumbers ...原创 2018-03-29 15:06:16 · 173 阅读 · 0 评论