HF_Cherish

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年6月12日

摘要: 1. Question给定行数,将某字符串转换为zigzag形式,然后按行输出。zigzag形式如:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you... 阅读全文
posted @ 2015-06-12 23:04 HF_Cherish 阅读(172) 评论(0) 推荐(0) 编辑

摘要: 1. Question求最长回文子串Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists... 阅读全文
posted @ 2015-06-12 22:35 HF_Cherish 阅读(168) 评论(0) 推荐(0) 编辑

摘要: 1. Question找两个有序数组的中位数。时间复杂度O(log(m+n))There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arr... 阅读全文
posted @ 2015-06-12 16:03 HF_Cherish 阅读(176) 评论(0) 推荐(0) 编辑

摘要: 1. Question求最长无重复字符子串。Given a string, find the length of the longest substring without repeating characters. For example, the longest substring withou... 阅读全文
posted @ 2015-06-12 15:32 HF_Cherish 阅读(164) 评论(0) 推荐(0) 编辑