摘要: Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu... 阅读全文
posted @ 2014-07-02 23:17 hansongjiang8 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana... 阅读全文
posted @ 2014-07-02 22:56 hansongjiang8 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 不戚戚于贫贱,不汲汲于富贵 ---五柳先生Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dict... 阅读全文
posted @ 2014-07-02 21:57 hansongjiang8 阅读(266) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/hansongjiang/p/3810825.html上回写了个博客,是关于1块钱,用 1,2,5分等硬币找钱,共有多种,当时是用搜索出所以可能的组合方式找的,当时参考的博客没看懂。也没仔细想。无意中看到http://www.ibm.com/develo... 阅读全文
posted @ 2014-07-02 14:48 hansongjiang8 阅读(182) 评论(0) 推荐(0) 编辑