码迷,mamicode.com
首页 >  
搜索关键字:nim or not nim    ( 2819个结果
Nim Game
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston ...
分类:其他好文   时间:2017-09-03 10:04:00    阅读次数:231
动态规划
int dp[1005][1005] = {0},len1,len2; char a[1005],b[1005]; void lcs() { for(int i = 1; i <= len1;i++) { for(int j = 1;j <= len2;j++) { if(a[i-1] == b[j ...
分类:其他好文   时间:2017-09-02 23:20:12    阅读次数:188
64. Minimum Path Sum
class Solution { public: int minPathSum(vector>& grid) { int height = grid.size(); int width = grid[0].size(); vector> result(height,vector(width)); r... ...
分类:其他好文   时间:2017-09-02 19:52:24    阅读次数:110
Node.js 使用Nimble实现串行流程控制
Nimble是Node.js下的流程控制工具。 使用如下命令进行安装: 测试代码: ...
分类:Web程序   时间:2017-09-02 19:12:07    阅读次数:142
Javascript面向对象(二):构造函数的继承
这个系列的第一部分,主要介绍了如何"封装"数据和方法,以及如何从原型对象生成实例。 今天要介绍的是,对象之间的"继承"的五种方法。 比如,现在有一个"动物"对象的构造函数。 function Animal(){ this.species = "动物"; } 还有一个"猫"对象的构造函数。 funct ...
分类:编程语言   时间:2017-09-02 12:59:26    阅读次数:220
mui选择器和dom获取元素的区别(记得把mui对象转为dom对象才能调用用dom方法)
<!DOCTYPE html><html> ...
分类:其他好文   时间:2017-09-02 00:14:44    阅读次数:291
ViewGroup源码解读
我们之前刚刚分析完事件传递机制和view的源码,如果没有看过的,建议看完View的事件拦截机制浅析以及View的事件源码解析。这次我们来分析下viewgroup的。 可能有人会想,怎么又是源码分析,肯定又是一大通。其实没你想的那么复杂。仔细分析一波就行了。 解读ViewGroup 我们都知道,一个事 ...
分类:其他好文   时间:2017-09-01 23:12:37    阅读次数:470
C#中的集合ArrayList
1,ArrayList集合定义数组时,不需要初始化其大小: 例: ArrayList animalArrayList = new ArrayList(); 但,使用array方法定义数组时: Animal[] animalArrayList2 = new Animal[5]; 2.ArrayList ...
分类:Windows程序   时间:2017-09-01 09:48:02    阅读次数:247
jQuery特效
1、隐藏与显示 .hide() 隐藏元素参数第一个(可选)为执行时间(毫秒),第二个(可选)为函数 .show() .toggle()2、淡入淡出 .fadeIn() 淡入 .fadeOut() 淡出 .fadeToggle() 淡入或淡出 .fadeTo() 设置不透明度3、滑动 .slideDo ...
分类:Web程序   时间:2017-09-01 00:11:56    阅读次数:202
Dialog的属性
<!-- Default theme for dialog windows and activities (on API level 10 and lower), which is used by the {@link android.app.Dialog} class. This changes ...
分类:其他好文   时间:2017-08-31 21:06:27    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!