码迷,mamicode.com
首页 >  
搜索关键字:container with most    ( 9531个结果
LeetCode - Best Time to Buy and Sell 3
这道题在前两个的基础上做稍微改进就可以。下面是AC代码: 1 /** 2 * Design an algorithm to find the maximum profit. You may complete at most two transactions. 3 * @pa...
分类:其他好文   时间:2014-07-22 23:01:13    阅读次数:251
编译打包Apache源码
如果要编写定制的Apache模块,最总需要编译成Apache包。 命令如下: % ./buildconf % ./configure --prefix=/usr/local/apache > --with-layout=Apache --enable-modules=most --enable-mods-shared=all > --with-mpm=prefork % make #mak...
分类:其他好文   时间:2014-07-22 22:59:34    阅读次数:243
poj1696/hlg1318 蛋疼的蚂蚁
Space AntTime Limit:1000MSMemory Limit:10000KTotal Submissions:2934Accepted:1874DescriptionThe most exciting space discovery occurred at the end of th...
分类:其他好文   时间:2014-07-22 22:59:15    阅读次数:365
G - Just a Hook
DescriptionIn the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecuti...
分类:其他好文   时间:2014-05-05 11:32:29    阅读次数:288
LeetCode: plusOne 题解
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-05-04 19:46:18    阅读次数:372
基数排序
时间复杂度 O(d*n),d 为不同数字数目,n 为待排元素个数。分为: MSD(most significant digit) 和 LSD(least significant digit)两种方法。MSD:从最高级别的 key 开始排序,每趟排序将所有元素分成 d 堆。LSD: 从最低级别的 k...
分类:其他好文   时间:2014-05-03 22:41:16    阅读次数:418
设计模式之迭代器模式
GOF给出的定义为:提供一种方法访问一个容器(container)对象中各个元素,而又不需暴露该对象的内部细节。它的目的:提供一种方法顺序访问一个聚合对象中各个元素, 而又不需暴露该对象的内部表示。[GOF 《设计模式》]如果大家只看定义的话估计也不太清楚吧,怎么说呢,从简单来讲,大家可以把它理解为...
分类:其他好文   时间:2014-05-02 08:51:18    阅读次数:319
[leetcode] Best Time to Buy and Sell Stock
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:其他好文   时间:2014-05-02 00:37:20    阅读次数:349
java swing 之绝对布局
Swing 中窗体具有默认的布局管理器,如JFrame 使用是边界布局。虽然布局管理器能够简化程序的开发,但是为了获取最大的灵活性,可以使用绝对布局,即不使用任何布局管理器,是哦那个该布局的步骤如下: (1) 使用Container.setLayout(null)方式取消布局管理器。 (2)使用Component.setBounds()方法来设置每个控件的大小与位置。 /** * java...
分类:编程语言   时间:2014-05-01 18:46:35    阅读次数:338
Leetcode:Container with most water 最大蓄水量
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin...
分类:其他好文   时间:2014-04-29 13:15:21    阅读次数:415
9531条   上一页 1 ... 950 951 952 953 954 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!