![](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
Description 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)). You may assume...原创 2019-04-28 23:03:58 · 76 阅读 · 0 评论 -
3. Longest Substring Without Repeating Characters
Description Given a string, find the length of the longest substring without repeating characters. Difficulty Medium Example1 Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the l...原创 2019-04-27 13:27:32 · 101 阅读 · 0 评论 -
1. Two Sum
Description 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...原创 2019-04-24 15:51:36 · 69 阅读 · 0 评论 -
2. Add Two Numbers
Description 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 the two numbers ...原创 2019-04-24 16:38:11 · 101 阅读 · 0 评论 -
5. Longest Palindromic Substring
Description Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Difficulty Medium Example1 Input: "babad" Output: "bab" Note: "aba" is ...原创 2019-06-15 16:43:24 · 123 阅读 · 0 评论 -
6. ZigZag Conversion
Description 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 ...原创 2019-06-15 16:54:12 · 109 阅读 · 0 评论