随笔分类 -  leetcode

摘要:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 这个代码有一个问题,就是 阅读全文
posted @ 2018-07-15 20:42 刘皓lh 阅读(330) 评论(0) 推荐(0)
摘要:Given a string, find the length of the longest substring without repeating characters. 给定一个字符串,找到最长无重复子串。 Examples: Given "abcabcbb", the answer is "a 阅读全文
posted @ 2017-12-24 14:20 刘皓lh 阅读(346) 评论(0) 推荐(0)
摘要: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 contai 阅读全文
posted @ 2017-12-24 13:54 刘皓lh 阅读(337) 评论(0) 推荐(0)
摘要: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 ex 阅读全文
posted @ 2017-12-24 13:25 刘皓lh 阅读(377) 评论(0) 推荐(0)