随笔分类 -  Python in leetcode

算法刷题
摘要:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: Pyhton代码如下: 最初使用 阅读全文
posted @ 2017-03-13 16:04 kuqs(奇小东) 阅读(240) 评论(0) 推荐(0)
摘要: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 sh 阅读全文
posted @ 2017-03-12 21:47 kuqs(奇小东) 阅读(192) 评论(0) 推荐(0)
摘要:Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2017-03-12 13:12 kuqs(奇小东) 阅读(195) 评论(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-03-10 16:59 kuqs(奇小东) 阅读(251) 评论(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-03-10 16:56 kuqs(奇小东) 阅读(274) 评论(0) 推荐(0)