码迷,mamicode.com
首页 >  
搜索关键字:search box    ( 20571个结果
javascript 跟随鼠标移动的提示框的一个小demo
下面提供一种跟随鼠标移动的提示框的思路,方便在以后工作中应用,主要是应用到鼠标移动产生的数值来进行移动提示框的定位...CSS代码.box{height:100px;width:100px;background:orange;position:relative;margin:40px;}.move{...
分类:移动开发   时间:2014-08-04 10:40:27    阅读次数:257
javascript 复合数据的定义和使用 ( 小例子 )
思路:主要是先要获取到三个 box 元素的 top 值 和 left 值,然后有复合数据进行存值,再进行数组值的位置移动来实现切换 box 位置效果;
分类:编程语言   时间:2014-08-04 10:39:16    阅读次数:210
ubuntu apt命令
apt-cache该命令用于在apt的软件包缓存中搜索软件。简单来说,就是用于搜索软件包,收集软件包信息并用于搜索哪些可以在Ubuntu或Debian上安装的软件。列出当前所有可用的软件包apt-cache pkgnames查找软件包并列出该软件包的相关信息apt-cache search vsft...
分类:其他好文   时间:2014-08-04 10:35:26    阅读次数:194
HDU 1247 Hat’s Words Trie题解
使用Trie的insert函数,主要是要灵活修改search函数,使得q...
分类:其他好文   时间:2014-08-04 08:19:16    阅读次数:240
[Unity-4] 碰撞检测
一、基本介绍 要进行碰撞检测有两个必须的组件,刚体(Rigidbody)和碰撞器(Collider)。 1、刚体是一个非常重要的组件。新创建的物体默认情况下是不具备物理效果的,而刚体组件可以给物体添加一些常见的物理属性,例如质量、力、速度等,这些属性可以使得该物体表现出实际中物体的一切行为。 2、碰撞器分为盒子碰撞器(Box Collider)、球体碰撞器(Sphere Collider)、...
分类:其他好文   时间:2014-08-03 18:11:24    阅读次数:389
UVA 501 - Black Box(优先队列)
UVA 501 - Black Box 题目链接 题意:给定一些操作,每次add进一个数,然后第i次询问的时候输出当前第i小的数字 思路:用两个优先队列搞,相当于把序列分成两个序列,每次取的答案就是后一个队列的头 代码: #include #include #include #include using namespace std; const int N ...
分类:其他好文   时间:2014-08-03 18:07:15    阅读次数:226
POJ2309 BST
Consider an infinite full binary search tree (see the figure below), the numbers in the nodes are 1, 2, 3, .... In a subtree whose root node is X, we can get the minimum number in this subtree by repe...
分类:其他好文   时间:2014-08-03 12:49:15    阅读次数:229
LeetCode——Search for a Range
题目:给定一个排好序的整数数组,找到给定目标值的出现的首尾位置。 思路:二分查找。由于是有序数组,所以相同值的数是连续的,即只要找到其中一个,再向左右找到边界值就可以了,这三步均采用二分查找。...
分类:其他好文   时间:2014-08-03 12:48:35    阅读次数:163
纯c 2048
#include #include #include #include #include #include #include #include using namespace std; const int MAXX = 10; int box[MAXX][MAXX]; vo...
分类:其他好文   时间:2014-08-03 10:11:25    阅读次数:314
LeetCode——Unique Binary Search Trees
Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1 \ ...
分类:其他好文   时间:2014-08-02 15:34:34    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!