LeetCode
seanlal
这个作者很懒,什么都没留下…
展开
-
LeetCode 一 two Sum 笔记
# LeetCode 一 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 yo...转载 2018-02-06 22:09:33 · 146 阅读 · 0 评论 -
LeetCode 第三题 Longest Substring Without Repeating Characters java/python写法
先贴题目 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 answer is “b”...原创 2018-02-10 14:43:35 · 105 阅读 · 0 评论 -
LeetCode 第五题 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 also a valid answer. ...原创 2018-02-25 21:12:01 · 148 阅读 · 0 评论