码迷,mamicode.com
首页 >  
搜索关键字:say    ( 1472个结果
[LeetCode] Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:其他好文   时间:2014-07-13 22:53:48    阅读次数:269
Ruby学习笔记0708
#!/usr/bin/env rubyclass MegaGreeter attr_accessor :names # 初始化這個物件 def initialize(names = "World") @names = names end # 向每個人說 hi def say_hi ...
分类:其他好文   时间:2014-07-09 17:12:13    阅读次数:200
Problem Best Time to Buy and Sell Stock III
Problem Description:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit...
分类:其他好文   时间:2014-07-07 16:05:24    阅读次数:229
Problem Best Time to Buy and Sell Stock 11
Problem Description:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit...
分类:其他好文   时间:2014-07-07 15:24:41    阅读次数:212
Problem Best Time to Buy and Sell Stock I
Problem Description: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...
分类:其他好文   时间:2014-07-07 15:24:05    阅读次数:206
【LeetCode】Best Time to Buy and Sell Stock
题目 Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the...
分类:其他好文   时间:2014-07-03 17:51:01    阅读次数:235
javascript的prototype经典使用场景
prototype的经典使用场景就是为对象增加属性和方法,如给自定义的Man对象增加个姓名属性和语言方法: function man() { this.age = "22"; } var tom = new man(); man.prototype.name = "tom"; man.prototype.say = function () { ...
分类:编程语言   时间:2014-07-02 08:50:51    阅读次数:261
[leetcode] Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:
分类:其他好文   时间:2014-06-27 12:15:20    阅读次数:212
python笔记
def say(a,b):print a,b---》apply(say,('jenny','hui'))jenny hui
分类:编程语言   时间:2014-06-26 23:24:36    阅读次数:236
Leetcode Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:其他好文   时间:2014-06-25 12:21:32    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!