码迷,mamicode.com
首页 >  
搜索关键字:algorithm    ( 11758个结果)
leetcode Gas Station
Gas Station  Total Accepted: 19381 Total Submissions: 75345My Submissions There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car w...
分类:其他好文   时间:2014-09-09 16:05:40    阅读次数:203
leetcode Candy
Candy  Total Accepted: 17540 Total Submissions: 92484My Submissions There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these childre...
分类:其他好文   时间:2014-09-09 16:05:39    阅读次数:187
Pascal's Triangle II <leetcode>
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:其他好文   时间:2014-09-09 15:07:48    阅读次数:167
zoj 3813 Alternating Sum(2014ACMICPC Regional 牡丹江站网络赛 E)
Alternating Sum Time Limit: 2 Seconds      Memory Limit: 65536 KB There is a digit string S with infinite length. In addition, S is periodic and it can be formed by concatenating infinite re...
分类:其他好文   时间:2014-09-09 13:28:48    阅读次数:210
STL algorithm算法copy_if(8)
原文地址:http://blog.csdn.net/qq844352155/article/details/39136169 function template std::copy_if template OutputIterator copy_if (InputIterator first, InputIterator last, ...
分类:其他好文   时间:2014-09-09 13:21:08    阅读次数:191
Pascal's Triangle II
[leetcode]Pascal's Triangle II...
分类:其他好文   时间:2014-09-09 12:45:05    阅读次数:118
N-Queens
[leetcode]N-Queens...
分类:其他好文   时间:2014-09-09 12:33:18    阅读次数:176
N-Queens II
[leetcode]N-Queens II...
分类:其他好文   时间:2014-09-09 12:32:58    阅读次数:129
#include<algorithm>
#include里的函数 转载▼#include里的函数#include 非修改性序列操作(12个)循环对序列中的每个元素执行某操作for_each()查找在序列中找出某个值的第一次出现的位置find()在序列中找出符合某谓词的第一个元素find_if()在序列中找...
分类:其他好文   时间:2014-09-08 10:47:07    阅读次数:201
c++11新增的一些便利的算法(转)
c+11新增加了一些便利的算法,这些新增的算法使我们的代码写起来更简洁方便,这里仅仅列举一些常用的新增算法,算是做个总结,更多的新增算法读者可以参考http://en.cppreference.com/w/cpp/algorithm。 算法库新增了三个用于判断的算法all_of、any_of和...
分类:编程语言   时间:2014-09-07 22:22:25    阅读次数:238
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!