摘要: [抄题]: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: 最后一位是空格,可能误判lastindexof()。所以必须用.trim() [思维问题]: [一句话思路]: 用函数 再次强调是最后一位的索引是lengt 阅读全文
posted @ 2018-03-20 23:05 苗妙苗 阅读(149) 评论(0) 推荐(0)
摘要: [抄题]: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: [暴力解法]: 时间分析 阅读全文
posted @ 2018-03-20 21:10 苗妙苗 阅读(206) 评论(0) 推荐(0)