Leetcode
Downey_W
正在努力的大学生一枚
展开
-
Leetcode:Longest Palindromic Substring
没弄过ACM的人表示刷leetcode还是有压力的!!!!看着别人的神思路,和对题目的分析还有入手点,让我真后悔大一没去搞搞ACM锻炼锻炼思维啊= = 目前比较遗憾的两件事就是大一没参加到学生会,和没有刷ACM题。 就好比这题,求最长回文子串 Given a string S, find the longest palindromic substr原创 2015-09-17 22:00:10 · 256 阅读 · 0 评论 -
Leetcode: 第四题 Median of Two Sorted Arrays
题目 There are two sorted arrays A and B 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)). 解答 求中位数需要根据数组长度是奇数还是偶数分别转载 2015-09-16 21:09:45 · 886 阅读 · 0 评论