码迷,mamicode.com
首页 >  
搜索关键字:fast compressive tra    ( 3081个结果
hdu1054 树形dp
http://acm.hdu.edu.cn/showproblem.php?pid=1054 Problem Description Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then...
分类:其他好文   时间:2015-02-07 20:23:14    阅读次数:129
Fast TileMap
概述 在游戏中常常会有丰富的背景元素,如果直接使用大的背景图实现,这会造成资源浪费。TileMap就是为了解决这问题而产生的。Cocos2d-x支持使用Tile地图编辑器创建的TMX格式的地图。 Cocos2d-x为我们提供了TMXTileMap和TMXLayer两个类来处理瓦片地图。通过使用TMXTileMap和TMXLayer,我们可以很方便的加载TMX格式的地图文件,获取地图上的...
分类:其他好文   时间:2015-02-07 16:01:16    阅读次数:142
Lintcode: Fast Power
Calculate the an % b where a, b and n are all 32bit integers.ExampleFor 231 % 3 = 2For 1001000 % 1000 = 0ChallengeO(logn)数学问题,要求O(log n)的时间复杂度,也就是每次去掉...
分类:其他好文   时间:2015-02-06 13:12:25    阅读次数:170
C# 敏感词过滤
public class BadWordFilter { #region 变量 private HashSet hash = new HashSet(); private byte[] fastCheck = new byte[char.MaxValue]; private byte[] fast....
分类:Windows程序   时间:2015-02-06 11:09:03    阅读次数:721
【SICP练习】10 练习1.16
?? 练习1.16 这道题题目特别长,说的无非就是要用一个不变量记录中间结果,然后写出对数步数内的通过迭代来计算幂的函数,当然了还要用到题目中括号内的那个关系。下面就直接上代码了: (define(fast-expt b n)        (fast-expt-iter 1 b n)) (define(fast-expt-iter a b n)       ...
分类:其他好文   时间:2015-02-05 20:34:01    阅读次数:179
【SICP练习】11 练习1.17
?? 练习1.17 这道题中有2个需要我们自己先写出来的函数double和halve,当然了,这都非常容易实现: (define(double x)        (+ x x)) (define(halve x)        (/ x 2)) 题目中要求我们设计一个类似于fast-expt的求乘积的过程,并且只用对数的步数。 (define(...
分类:其他好文   时间:2015-02-05 20:32:57    阅读次数:96
[LeetCode]142.Linked List Cycle II
题目: Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it without using extra space?分析:首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。当f...
分类:其他好文   时间:2015-02-05 20:29:16    阅读次数:180
【SICP练习】6 练习1.16-1.19
练习1.16这道题题目特别长,说的无非就是要用一个不变量记录中间结果,然后写出对数步数内的通过迭代来计算幂的函数,当然了还要用到题目中括号内的那个关系。下面就直接上代码了:(define (fast-expt b n) (fast-expt-iter 1 b n))(define (fast-exp...
分类:其他好文   时间:2015-02-05 20:23:27    阅读次数:157
jQuery慢慢啃之特效(八)
1.show([speed,[easing],[fn]])\\显示隐藏的匹配元素//speed:三种预定速度之一的字符串("slow","normal", or "fast")或表示动画时长的毫秒数值(如:1000)//easing:(Optional) 用来指定切换效果,默认是"swing",可用...
分类:Web程序   时间:2015-02-04 16:25:26    阅读次数:224
IOS8 开发之Swift - 自学之路(第一天)
1.1What is Swift “Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Sw...
分类:移动开发   时间:2015-02-04 13:04:04    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!