摘要:
1 #include 2 #include 3 #include 4 using namespace std; 5 int main() 6 { 7 int a[10]; 8 ofstream outfile("e://out_put_file.txt",ios::out); 9 if(!outfile) 10 { 11 cerr... 阅读全文
posted @ 2016-05-23 17:04
X-POWER
阅读(244)
评论(0)
推荐(0)
摘要:
/* * 每个字符和自身是回文的,然后按照该字符为中心向两边扩展。 但是可能存在类似"baab"这样的情况,所以此处有了将该字符和下一个字符一起对比,若同则继续两边扩展的做法。 * */ class Solution { public String longestPalindrome(String 阅读全文
posted @ 2016-05-23 17:02
X-POWER
阅读(183)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 #include 15 #include 16... 阅读全文
posted @ 2016-05-23 02:09
X-POWER
阅读(677)
评论(0)
推荐(0)

浙公网安备 33010602011771号