LeetCode
liveway66
听音乐码字的镁离子,记录我的LeetCode之旅~
展开
-
LeetCode--4
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原创 2017-02-23 11:13:22 · 194 阅读 · 0 评论 -
LeetCode--3
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 leng原创 2017-02-23 10:12:38 · 299 阅读 · 0 评论 -
LeetCode--5
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.Example:Input: "babad"Output: "bab"Note: "aba" is原创 2017-02-23 20:10:53 · 235 阅读 · 0 评论 -
LeetCode--6
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原创 2017-02-24 16:15:42 · 278 阅读 · 0 评论 -
LeetCode--7
7. Reverse Integer题目概述Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321Note: The input is assumed to be a 32-bit signed integer. Your function should return 0原创 2017-02-24 20:20:07 · 243 阅读 · 1 评论