09 2014 档案

摘要:Palindrome Partitioning IIGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a p... 阅读全文
posted @ 2014-09-19 21:49 陆草纯 阅读(3163) 评论(0) 推荐(0) 编辑
摘要:Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may ... 阅读全文
posted @ 2014-09-10 13:43 陆草纯 阅读(264) 评论(0) 推荐(0) 编辑
摘要:Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thes... 阅读全文
posted @ 2014-09-08 14:03 陆草纯 阅读(333) 评论(0) 推荐(0) 编辑
摘要:Insertion Sort ListSort a linked list using insertion sort.本题是插入排序的链表版本。传统数组版本做法就是两重循环,第一重是遍历所有元素,第二重是遍历已排序部分进行插入。链表版本类似,在遍历每个元素过程中,遍历已排序部分进行插入。/** * ... 阅读全文
posted @ 2014-09-06 12:40 陆草纯 阅读(3712) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示