2016年1月2日

ZigZag Conversion

摘要: The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo... 阅读全文

posted @ 2016-01-02 21:02 walkwalkwalk 阅读(158) 评论(0) 推荐(0) 编辑

Longest Palindromic Substring

摘要: Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa... 阅读全文

posted @ 2016-01-02 20:33 walkwalkwalk 阅读(175) 评论(0) 推荐(0) 编辑

Median of Two Sorted Arrays

摘要: There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should... 阅读全文

posted @ 2016-01-02 20:31 walkwalkwalk 阅读(144) 评论(0) 推荐(0) 编辑

导航