摘要: 4.30更新,已经AC 18. 4Sum My Submissions QuestionEditorial Solution Total Accepted: 71102 Total Submissions: 299393 Difficulty: Medium Given an ... 阅读全文
posted @ 2016-04-19 23:20 Free_Open 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 具体实现见中间源码 function template std::unique equality (1) template ForwardIterator unique (ForwardIterator first, ForwardIterator last); ... 阅读全文
posted @ 2016-04-19 22:46 Free_Open 阅读(650) 评论(0) 推荐(0) 编辑
摘要:  随机采样方法整理与讲解(MCMC、Gibbs Sampling等) 本文是对参考资料中多篇关于sampling的内容进行总结+搬运,方便以后自己翻阅。其实参考资料中的资料写的比我好,大家可以看一下!好东西多分享!PRML的第11章也是sampling,有时间后面写到PRML的笔记中去:... 阅读全文
posted @ 2016-04-19 21:41 Free_Open 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 转自: 作者: peghoty 出处: http://blog.csdn.net/peghoty/article/details/9337515 阅读全文
posted @ 2016-04-19 17:32 Free_Open 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1. 概念 什么是“标准非STL容器”?标准非STL容器是指“可以认为它们是容器,但是他们并不满足STL容器的所有要求”。前文提到的容器适配器stack、queue及priority_queue都是标准非STL容器的一部分。此外,valarray也是标准非STL容器。 bitset:一种高效位集... 阅读全文
posted @ 2016-04-19 11:12 Free_Open 阅读(404) 评论(0) 推荐(0) 编辑
摘要: Pow(x, n) Total Accepted: 88351 Total Submissions: 317095 Difficulty: Medium Implement pow(x, n). 思路:a.循环迭代求解(O(n)n次乘法运算) 仔细想想,做了很多重复工作 b.如何利... 阅读全文
posted @ 2016-04-19 09:45 Free_Open 阅读(203) 评论(0) 推荐(0) 编辑