摘要: 125. Valid Palindrome consider only alphanumeric characters and ignore cases. transform(s.begin(), s.end(), s.begin(), ::tolower);//全变小写 if(!::isalnum 阅读全文
posted @ 2016-12-16 13:01 会咬人的兔子 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 115. Distinct Subsequences 96. Unique Binary Search Trees 120. Triangle 123. Best Time to Buy and Sell Stock III 最后用了两遍扫描:从前往后, 从后往前。注意初始赋值。 132. Pali 阅读全文
posted @ 2016-12-16 05:47 会咬人的兔子 阅读(168) 评论(0) 推荐(0) 编辑