码迷,mamicode.com
首页 >  
搜索关键字:say    ( 1472个结果
POJ 3267
dp经典关于这道题,我看了网上大量的资料,发现整体思路是对的,但是细节解释是错的(或者说不到位)Len = strlen(say); say是牛说的话,下面的word代表单词列表dp[i]表示从say中第i个字符开始,到第Len-1个字符(结尾处)这段区间所删除的字符数,初始化为dp[i]=len-...
分类:其他好文   时间:2014-06-13 08:27:32    阅读次数:285
[leetcode]Count and Say @ Python
原题地址:https://oj.leetcode.com/problems/count-and-say/题意:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 11...
分类:编程语言   时间:2014-06-13 06:23:26    阅读次数:366
JavaScript-1.最简单的程序之网页弹出对话框,显示为Warning---ShinePans
代码: 2-1 向用户发出警告 what_to_say="Warning";...
分类:编程语言   时间:2014-06-10 17:57:11    阅读次数:288
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-10 10:41:04    阅读次数:147
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 a...
分类:其他好文   时间:2014-06-09 15:53:03    阅读次数:246
LeetCode: Best Time to Buy and Sell Stock [121]
【题目】 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 stock), design an algorithm to find the maximum profit. ...
分类:其他好文   时间:2014-06-08 15:11:58    阅读次数:298
字典树 Trie (HDU 1671)
Problem Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers: 1. Emergenc...
分类:其他好文   时间:2014-06-08 10:31:22    阅读次数:234
[Android]Android经典教程
第一季1.Android平台一日游2.搭建Android开发环境3.Say Hello To Android4.Activity初步5.Activity和Intent6.Android当中的常见控件7.Activity生命周期(一)8.Activity生命周期(二)9.Activity布局初步(一)...
分类:移动开发   时间:2014-06-08 07:16:20    阅读次数:314
Javascript 进阶 继承
1、基于类的继承 下面看下面的代码: function Person(name, age) { this.name = name; this.age = age; } Person.prototype.say = function () {...
分类:编程语言   时间:2014-06-08 02:22:26    阅读次数:306
Can You say the what the kd 6 color
There is no denying theWhat The KD 6is among the most widely used athletic shoes available. Because of so many great releases such as the Aunt Gem KD ...
分类:其他好文   时间:2014-06-08 01:12:23    阅读次数:343
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!