LeetCode
MrZhangOac
这个作者很懒,什么都没留下…
展开
-
LeetCode 3. Longest Substring Without Repeating Characters
Descripition: 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 answ原创 2018-02-01 20:27:30 · 239 阅读 · 0 评论 -
LeetCode 2. Add Two Numbers
Descripition: 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 numbe原创 2018-02-01 11:39:04 · 228 阅读 · 0 评论 -
LeetCode 1. Two Sum
Descripition: 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 no原创 2018-02-01 11:06:21 · 203 阅读 · 0 评论 -
LeetCode 4. Median of Two Sorted Arrays
Descripition: 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:原创 2018-02-01 21:34:06 · 225 阅读 · 0 评论 -
LeetCode 5. Longest Palindromic Substring
Descripition: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: “babad” Output: “bab” Note: “aba” is also a valid an...原创 2018-11-03 22:33:49 · 213 阅读 · 0 评论