LeetCode
颹蕭蕭
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 1: Two Sum
Two SumGiven 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 use ...原创 2018-09-15 17:48:25 · 1757 阅读 · 0 评论 -
LeetCode 2: Add Two Numbers
Add Two NumbersYou 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 num...原创 2018-09-15 19:58:50 · 1681 阅读 · 0 评论 -
LeetCode 3: Longest Substring Without Repeating Characters
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters.Example 1:Input: "abcabcbb"Output: 3 Explanation: The answ...原创 2018-09-15 22:01:11 · 1655 阅读 · 0 评论 -
LeetCode 4: Median of Two Sorted Arrays
Median of Two Sorted ArraysThere 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))...原创 2018-09-16 17:04:34 · 1686 阅读 · 0 评论 -
LeetCode 5: Longest Palindromic Substring
Longest Palindromic SubstringGiven 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...原创 2018-09-17 20:31:16 · 1396 阅读 · 0 评论 -
LeetCode 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 H NA P L S I I G...原创 2018-09-17 23:19:38 · 1454 阅读 · 0 评论 -
LeetCode 7: Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dealing with ...原创 2018-09-18 14:43:52 · 1532 阅读 · 0 评论 -
LeetCode 8: String to Integer (atoi)
Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this...原创 2018-09-19 22:16:56 · 1407 阅读 · 0 评论 -
LeetCode 9: Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Example 1:Input: 121Output: trueExample 2:Input: -121Output: falseExplanatio...原创 2018-09-19 22:33:19 · 1487 阅读 · 0 评论
分享