码迷,mamicode.com
首页 >  
搜索关键字:one person game    ( 39118个结果
LeetCode OJ - Reverse Linked List II
题目:Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL...
分类:其他好文   时间:2014-06-09 23:03:18    阅读次数:254
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
poj 1469 COURSES
DescriptionConsider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it ...
分类:其他好文   时间:2014-06-09 15:36:50    阅读次数:239
kill one process
There is an need of kill one port is already in use. The command is : lsof -i:8000 There will be a list of: command pid user fd type device size...
分类:其他好文   时间:2014-06-08 21:47:33    阅读次数:366
OOP 2014年6月8日09:54:07
1 【1】 //new的操作相当于根据类的定义在内存中创建一块独立的区域 2 //所以两个对象修改各自的属性不受影响。 3 4 Person p1 = new Person(); 5 p1.Height = 1...
分类:其他好文   时间:2014-06-08 21:16:45    阅读次数:332
单一职责原则
什么是单一职责原则 什么是单一职责原则? 单一职责原则的英文名称是Single Responsibility Principle,简称SRP。SRP的原话解释是:There should never be more than one reason for a class to change.也就是说...
分类:其他好文   时间:2014-06-08 19:36:12    阅读次数:315
pat 1068 动态规划/Fina More Conis
1068. Find More Coins (30)Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a univers...
分类:其他好文   时间:2014-06-08 18:49:44    阅读次数:432
求斐波那契单词的第n个字符
Definition Let  be "0" and  be "01". Now  (the concatenation of the previous sequence and the one before that). The infinite Fibonacci word is the limit  We have:     0     01     010     01...
分类:其他好文   时间:2014-06-08 09:19:42    阅读次数:273
Merge Sorted Array
题目 Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional el...
分类:其他好文   时间:2014-06-08 05:05:47    阅读次数:268
Javascript 进阶 继承
1、基于类的继承 下面看下面的代码: function Person(name, age) { this.name = name; this.age = age; } Person.prototype.say = function () {...
分类:编程语言   时间:2014-06-08 02:22:26    阅读次数:306
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!