码迷,mamicode.com
首页 >  
搜索关键字:move    ( 6147个结果
javascript实现组合列表框中元素移动效果
应用背景:在页面中有两个列表框,需要把其中一个列表框的元素移动到另一个列表框。 实现的基本思想: (1)编写init方法对两个列表框进行初始化; (2)为body添加onload事件调用init方法; (3)编写move(s1,s2)把s1中选中的选项移到s2; (4)编写moveAl...
分类:移动开发   时间:2015-04-02 09:00:24    阅读次数:133
Lintcode: Partition Array
Given an array "nums" of integers and an int "k", Partition the array (i.e move the elements in "nums") such that, * All elements = k are moved to ...
分类:其他好文   时间:2015-04-02 06:38:14    阅读次数:172
poj 2975 Nim 尼姆博弈,求取胜方案数
Nim is a 2-player game featuring several piles of stones. Players alternate turns, and on his/her turn, a player’s move consists of removing one or more stones from any single pile. Play ends when all the stones have been removed, at which point the last p...
分类:其他好文   时间:2015-04-01 15:21:45    阅读次数:197
控制物体的移动与碰撞检测
using UnityEngine; using System.Collections; public class move : MonoBehaviour { GameObject go; // Use this for initialization void Start () { go= GameObject.Find("c4"); //命名为c4的...
分类:移动开发   时间:2015-03-31 14:49:39    阅读次数:134
leetcode------Triangle
标题:Triangle通过率:27.1%难度:中等Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.F...
分类:其他好文   时间:2015-03-30 20:59:18    阅读次数:113
move ---- 编写一个包含几种常用动画的js库
在操作dom元素的时候为了让网站显得更有活力或者某些想让人注意到, 经常需要用到一些小动画, 但常用的 jquery 库只有一种ease(先加速后减速的动画)运动方式的动画, 虽然这是很常用的动画, 但有时也会用到其他的, 最近写了一个集成几种常用动画的库, move.js, 如果不是走动画队列.....
分类:Web程序   时间:2015-03-30 06:45:40    阅读次数:161
LeetCdoe Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at...
分类:其他好文   时间:2015-03-28 10:15:14    阅读次数:116
Building Blocks (hdu 5191)
题意:有n堆由1*1小木块堆起来的积木,现在要你移动若干次使其中连续的长度为w的高度都为h,一次只能移动一个,而且可以在两边增加新堆(只能在两边,不能在中间插入),问最少得移动多少次。 思路:因为可以在两边增加堆,所以我先在数组两边各加上w长度,Move数组存 每个地方变成h要移进来或者移出去的步数,a数组记录i位子是要移进来还是移出去。然后维护一个长度为w的连续区间(i-w+1 ~ i),计算出这个区间总共得移进来的数目z和移出去的数目和f,那么要使这个区间满足条件就要移动m=z+f-min(z,f),(...
分类:其他好文   时间:2015-03-22 09:12:35    阅读次数:242
Android中Touch手势分发
在android中的Touch分发中,经常可以看到从ACTION_DOWN->ACTION_MOVE->ACTION_UP,当我们不了解它是如何分发的话总感觉一头雾水,所以有必要了解它的整体分发过程,所以很有必要好好的记录下。 事件分发函数 public void dispatchTouchEvent(MotionEvent ev). public void onInterceptT...
分类:移动开发   时间:2015-03-21 21:20:54    阅读次数:191
复制、移动和删除:cp, rm, mv
要复制文件,请使用cp(copy)命令。不过,cp命令的用途很多。除了单纯的复制之外,还可以建立连接文件(就是快捷方式),比较两个文件的新旧而予以更新,以及复制整个目录等等。至于移动目录与文件,则使用mv(move),这个命令也可以直接用来重命名(rename)。删除使用rm(remove)命令。....
分类:移动开发   时间:2015-03-21 18:19:49    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!