01 2015 档案

【转】【DP_树形DP专辑】【9月9最新更新】【from zeroclock's blog】
摘要:树,一种十分优美的数据结构,因为它本身就具有的递归性,所以它和子树见能相互传递很多信息,还因为它作为被限制的图在上面可进行的操作更多,所以各种用于不同地方的树都出现了,二叉树、三叉树、静态搜索树、AVL树,线段树、SPLAY树,后缀树等等.. 枚举那么多种数据结构只是想说树方面的内容相当多,本... 阅读全文

posted @ 2015-01-31 14:03 aituming 阅读(164) 评论(0) 推荐(0)

[leetcode]Next Permutation
摘要:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl... 阅读全文

posted @ 2015-01-27 22:17 aituming 阅读(187) 评论(0) 推荐(0)

[leetcode]Generate Parentheses
摘要:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))... 阅读全文

posted @ 2015-01-22 20:07 aituming 阅读(135) 评论(0) 推荐(0)

链式队列的实现
摘要:QueueNode.htemplate class LinkQueue;templateclass QueueNode{private: friend class LinkQueue; friend ostream& operator& q); //函数要访问QueueNode的私有... 阅读全文

posted @ 2015-01-22 12:06 aituming 阅读(245) 评论(0) 推荐(0)