码迷,mamicode.com
首页 >  
搜索关键字:jump game ii    ( 12386个结果
nyoj-----284坦克大战(带权值的图搜索)
坦克大战时间限制:1000ms | 内存限制:65535KB难度:3描述Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on com...
分类:其他好文   时间:2014-06-13 08:24:42    阅读次数:221
[leetcode]Jump Game @ Python
原题地址:https://oj.leetcode.com/problems/jump-game/题意:Given an array of non-negative integers, you are initially positioned at the first index of the arr...
分类:编程语言   时间:2014-06-12 18:04:54    阅读次数:540
Reverse Linked List II
题目 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m,...
分类:其他好文   时间:2014-06-11 06:07:11    阅读次数:392
[LeetCode] Remove Duplicates from Sorted Array II [27]
移除数组中重复次数超过2次以上出现的数,但是可以允许重复2次。 这个题类似Remove Duplicates from Sorted Array,第一个想法很直接就是计数,超过2次的就忽略,依据这个思路的代码见代码一; 上面的思路可行,但是代码看着比较冗余,判断比较多。再来想想原来的数组,该数组是排好序的,如果一个数出现3次以上,那么必有A[i] == A[i-2]。所以根据这个关系可以写出比较精简的代码二。详见代码。...
分类:其他好文   时间:2014-06-10 19:18:39    阅读次数:250
Unique Paths II
题目 Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respective...
分类:其他好文   时间:2014-06-10 18:28:49    阅读次数:207
ACdream群赛1112(Alice and Bob)
题意:http://acdream.info/problem?pid=1112 Problem Description Here  is Alice and Bob again ! Alice and Bob are playing a game. There are several numbers.First, Alice choose a number n.Then he c...
分类:其他好文   时间:2014-06-10 14:48:56    阅读次数:236
unity game Developemnt in 24 hours 第20章 Audio 声音
声音1. 声音的使用涉及三个概念:()Listener ——监听声音的object,一个场景只能有一个Listener(2)声音源文件(3)声音剪辑clip —— 我理解的是吧源文件放到scene关联object就成为了一个clip2. 声音unity3d支持的格式包括mp3,wav,ogg等3D和...
分类:其他好文   时间:2014-06-10 12:01:30    阅读次数:295
poj 2536 Gopher II (二分匹配)
Gopher IITime Limit:2000MSMemory Limit:65536KTotal Submissions:6345Accepted:2599DescriptionThe gopher family, having averted the canine threat, must f...
分类:其他好文   时间:2014-06-10 10:30:00    阅读次数:218
Android漫游记(3)---重定位之GOT & PLT & R_ARM_JUMP_SLOT
Android系统的动态链接工具是/system/bin/linker(一般的Linux系统是ld.so),虽然名字不同,但是基本的动态链接过程是类似的。需要注意的一点是,Linux一般是Lazy,即所谓的“懒”加载方式,但是Android系统有点区别,是非Lazy方式,即所有的重定位操作,在进程首次执行以前已经全部完成。这大概也是Android应用首次启动比较慢的原因之一吧! 关于Android系统的PLT和GOT可以写上一篇高考作为,在这里就不提概念性的东西了,网上有一篇博文:http://ww...
分类:移动开发   时间:2014-06-10 07:31:39    阅读次数:495
Uva 11489 - Integer Game
Two players, S and T, are playing a game where they make alternate moves. S plays first.  In this game, they start with an integer N. In each move, a player removes one digit from the integer and p...
分类:其他好文   时间:2014-06-10 06:31:29    阅读次数:302
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!