码迷,mamicode.com
首页 >  
搜索关键字:node animations    ( 27787个结果
赵雅智_Tween动画(旋转、平移、放缩和渐变)
Tween动画,就是对场景里的对象不断的进行图像变化来产生动画效果(旋转、平移、放缩和渐变)。 Tweene Animations。   主要类   Animation   动画 AlphaAnimation 渐变透明度 RotateAnimation 画面旋转 ScaleAnimation 渐变尺寸缩放 TranslateAnimation ...
分类:其他好文   时间:2014-06-16 22:18:07    阅读次数:262
HDU 1698 Just a Hook 线段树解法
很经典的题目,而且是标准的线段树增加lazy标志的入门题目。 做了好久线段树,果然是practice makes perfect, 这次很畅快,打完一次性AC了。 标志的线段树函数。 主要是: 更新的时候只更新到需要的节点,然后最后的时候一次性把所以节点都更新完毕。 这也是线段树常用的技术。 #include const int SIZE = 100005; struct Node...
分类:其他好文   时间:2014-06-16 20:38:39    阅读次数:182
Geeks 一般二叉树的LCA
不是BST,那么搜索两节点的LCA就复杂点了,因为节点是无序的。 下面是两种方法,都写进一个类里面了。 当然需要重复搜索的时候,可以使用线段树及多种方法加速搜索。 #include #include using namespace std; class LCANormalTree { struct Node { int key; Node *left, *right;...
分类:其他好文   时间:2014-06-16 20:20:04    阅读次数:234
MongoDB + node-mongoskin学习笔记
MongoDB + node-mongoskin基本介绍。...
分类:数据库   时间:2014-06-16 20:02:40    阅读次数:704
【Leetcode】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? 思路:由【Leetcode】Linked List Cycle可知,利用一快一慢...
分类:其他好文   时间:2014-06-15 14:23:38    阅读次数:288
Easyui 异步树直接全部展开
初始化异步树直接全部展开代码: $(function(){ $('#tt').tree({ url:'/treeInit', lines:true, onLoadSuccess:function(node,data){ var t = $(this); if(data){ $(data).each(f...
分类:其他好文   时间:2014-06-15 13:30:02    阅读次数:242
C#、PHP与NodeJs性能测试对比
http://www.prahladyeri.com/2014/06/php-vs-node-js-real-statistics/ 在网络编程领域,常用的解决方案就是JSP(SSH)、ASP.NET、PHP加上LAMP这种架构。不过,现在这个大家庭加入了NodeJS,这个轻量级的基于JavaScript服务端库的平台可以使用异步I/O的方式来提升整体的性能。   I/O操作是网络传输中占用...
分类:Web程序   时间:2014-06-15 10:48:34    阅读次数:384
[LeetCode] 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?比...
分类:其他好文   时间:2014-06-14 15:48:59    阅读次数:217
优先队列比较符重载
#include #include using namespace std; struct Node{ int x, y; friend bool operator b.x; //x最小的节点在队首 } }; int main(){ priority_queue PQ; Node temp = {2, 3}; PQ...
分类:其他好文   时间:2014-06-14 14:03:20    阅读次数:355
算法6-2:解决哈系冲突之独立链表
独立链表是解决哈希冲突的一种办法。它的基本思想就是将哈希值相互冲突的几个对象放到一个链表中。 代码 public class HashST { private static class Node { Object key; // 由于无法创建泛型数组,只能将对象设置为Object类 Object value; Node n...
分类:其他好文   时间:2014-06-14 10:04:26    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!