![](https://img-blog.csdnimg.cn/20191115142352633.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
LeetCode
LeetCode算法题系列(每周更新两道)
「已注销」
我所追求的境界:不多写一行代码
展开
-
4. Median of Two Sorted Arrays
DescriptionThere 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)).You may assume...原创 2019-04-28 23:03:58 · 70 阅读 · 0 评论 -
3. Longest Substring Without Repeating Characters
DescriptionGiven a string, find the length of the longest substring without repeating characters.DifficultyMediumExample1Input: "abcabcbb"Output: 3 Explanation: The answer is "abc", with the l...原创 2019-04-27 13:27:32 · 93 阅读 · 0 评论 -
1. Two Sum
DescriptionGiven 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...原创 2019-04-24 15:51:36 · 62 阅读 · 0 评论 -
2. Add Two Numbers
DescriptionYou 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 the two numbers ...原创 2019-04-24 16:38:11 · 91 阅读 · 0 评论 -
5. Longest Palindromic Substring
DescriptionGiven a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.DifficultyMediumExample1Input: "babad"Output: "bab"Note: "aba" is ...原创 2019-06-15 16:43:24 · 119 阅读 · 0 评论 -
6. ZigZag Conversion
DescriptionThe 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...原创 2019-06-15 16:54:12 · 104 阅读 · 0 评论