摘要:
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there... 阅读全文
posted @ 2014-12-22 23:33
陆草纯
阅读(252)
评论(0)
推荐(0)
摘要:
ZigZag ConversionThe string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern i... 阅读全文
posted @ 2014-12-22 23:14
陆草纯
阅读(1018)
评论(0)
推荐(0)
摘要:
String to Integer (atoi)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, plea... 阅读全文
posted @ 2014-12-22 11:30
陆草纯
阅读(285)
评论(0)
推荐(0)
摘要:
Majority ElementGiven an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may ass... 阅读全文
posted @ 2014-12-22 10:38
陆草纯
阅读(9704)
评论(6)
推荐(1)