大神博客
BIG_GENERAL_DD
好好学习,天天向上.
展开
-
程序员面试、算法研究、编程艺术、红黑树、数据挖掘5大经典原创系列集锦与总结
点击打开链接(具体详情 点击链接)程序员面试、算法研究、编程艺术、红黑树、数据挖掘5大经典原创系列集锦与总结(七月在线:点击打开链接,面试 & 算法 & 机器学习在线课程)作者:July--结构之法算法之道blog之博主。时间:2010年10月-2014年12月。出处:点击打开链接。说明:本博客中部分文章经转载 2017-03-29 23:03:18 · 336 阅读 · 0 评论 -
[LeetCode]40.Combination Sum II
【题目】Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may only be used once in t转载 2017-04-15 09:50:45 · 226 阅读 · 0 评论 -
[LeetCode]39.Combination Sum
【题目】Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unli转载 2017-04-15 09:44:31 · 226 阅读 · 0 评论 -
lower_bound和upper_bound算法
ForwardIter lower_bound(ForwardIter first, ForwardIter last,const _Tp& val)算法返回一个非递减序列[first, last)中的第一个大于等于值val的位置。ForwardIter upper_bound(ForwardIter first, ForwardIter last, const _Tp& val)算法返回原创 2017-04-15 09:34:05 · 545 阅读 · 0 评论 -
约瑟夫问题
约瑟夫问题的两个O(log n)解法这个是学习编程时的一个耳熟能详的问题了:n个人(编号为0,1,...,n-1)围成一个圈子,从0号开始依次报数,每数到第m个人,这个人就得自杀,之后从下个人开始继续报数,直到所有人都死亡为止。问最后一个死的人的编号(其实看到别人都死了之后最后剩下的人可以选择不自杀……)。这个问题一般有两种问法:给出自杀顺序。不少数据结构初学书原创 2017-04-15 09:19:23 · 676 阅读 · 0 评论