摘要: Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".题解:用栈就行了代码: 1 class Solution {... 阅读全文
posted @ 2014-04-28 16:35 SunshineAtNoon 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl... 阅读全文
posted @ 2014-04-28 16:14 SunshineAtNoon 阅读(147) 评论(0) 推荐(0) 编辑
摘要: The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie... 阅读全文
posted @ 2014-04-28 15:34 SunshineAtNoon 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 发现自己不写总结真是件很恶劣的事情,好多学的东西没有自己总结都忘记了。所以决定从今天开始,学东西的时候一定跟上总结。我写的东西大多数是自己通俗的总结,不太喜欢写严格的定义或者证明,写了也记不住,欢迎指正。1. High Bias vs. High Variance High Bias:通常是因为模... 阅读全文
posted @ 2014-04-28 00:16 SunshineAtNoon 阅读(861) 评论(0) 推荐(0) 编辑