
算法
旋哥11
希望和大家多多交流
展开
-
LeetCode 1
###Two Sum题目描述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 ...原创 2018-11-24 13:53:08 · 134 阅读 · 0 评论 -
LeetCode 2
###Add Two Numbers题目描述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 th...原创 2018-11-25 19:52:29 · 103 阅读 · 0 评论 -
LeetCode 3
###Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters.Example 1:Input: “abcabcbb”Output: 3Explanation: The answer ...原创 2018-11-27 18:22:49 · 116 阅读 · 0 评论 -
LeetCode 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 (...原创 2018-11-30 20:39:01 · 126 阅读 · 0 评论 -
LeetCode 5 (Longest Palindromic Substring)
###Longest Palindromic Substring(最大回文字符串)####1、题目描述: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”Outp...原创 2018-12-07 19:25:52 · 318 阅读 · 0 评论 -
LeetCode 6 (ZigZag Conversion)
###ZigZag Conversion(ZigZag转换)####1、题目描述: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 bet...原创 2018-12-15 19:33:22 · 243 阅读 · 0 评论