409. Longest Palindrome
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.
总结了几个跟Partition相关的题目,发现对Partition的结果要求有着小小的不同,就导致Partition过程中细节略有不同。
譬如:
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 one unique longest palindromic substring.
以前写Binary Search边界条件总是不好把握,看到有同学用九章的模板,没觉着怎么好用,后来听了九章的课之后,才发现,这个模板好神奇。
模板如下:
There is a stone game. At the beginning of the game the player picks n piles of stones in a line.
以前把博客从wordpress迁移到了hexo. 但是不知道是什么原因就挂了,一直也没有弄,后来就忘了。忘了也就不写博客了。写博客是个很好的记录无论是学习或是生活的好方式,可惜一直没有养成好习惯。
看到DigitalOcean的vps价格不贵,想装来试试,如果效果好的话,就把godaddy上的博客迁移过来。但是装好mysql之后,无法启动,让我很是郁闷。