
leetcode-java
831143
这个作者很懒,什么都没留下…
展开
-
寻找最长回文字符串
class Solution { public String longestPalindrome(String s) { if (s == null || s.length() == 0) { return ""; } int length = s.length(); int max = 0;原创 2017-11-17 14:07:24 · 323 阅读 · 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 should be O(log (m+n)).Example 1:nums1 = [1, 3]nums原创 2017-11-13 21:14:44 · 1496 阅读 · 0 评论