码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
[leetcode] 7. Binary Tree Level Order Traversal II
这次相对来讲复杂点,题目如下: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:其他好文   时间:2014-11-15 01:23:35    阅读次数:192
ubuntu android 设备识别 Setting up a Device for Development
参考: http://developer.android.com/tools/device.html lsusb Bus 001 Device 004: ID 18d1:9025 Google Inc. vi /etc/udev/rules.d/80-android.rules SUBSYSTEMS...
分类:移动开发   时间:2014-11-14 17:38:35    阅读次数:179
[Leetcode] Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?Solution:public cla...
分类:其他好文   时间:2014-11-14 17:15:48    阅读次数:159
抢占式内核与非抢占式内核中的自旋锁(spinlock)的区别
一、概括 (1)自旋锁适用于SMP系统,UP系统用spinlock是作死。 (2)保护模式下禁止内核抢占的方法:1、执行终端服务例程时2、执行软中断和tasklet时3、设置本地CPU计数器preempt_count (3)自旋锁的忙等待的实际意义是:尝试获取自旋锁的另一个进程不断尝试获取被占用的自旋锁,中间只pause一下! (4)在抢占式内核的spin_lock宏中,第一次关抢占,目的...
分类:其他好文   时间:2014-11-14 12:37:57    阅读次数:287
Tcp/ip实验准备:一个简单的定时器——boost实现
tcp/ip实验需要在指定的时间查看结果,为了实验方便,做了一个定时器。使用方法是: 在命令行输入:timer 分钟数 时间到了之后会有3声蜂鸣,并显示Time is up! 程序如下: timer.cpp: // g++ timer.cpp -o timer.exe -lboost_system-mgw48-1_56 -lws2_32 -static #include #includ...
分类:其他好文   时间:2014-11-14 10:48:06    阅读次数:171
最全网络配置命令
首先,先了解传统的网络配置命令: 1. 使用ifconfig命令配置并查看网络接口情况 示例1: 配置eth0的IP,同时激活设备: # ifconfig eth0 192.168.4.1 netmask 255.255.255.0 up 示例2: 配置eth0别名设备 eth0:1 的IP,并添加...
分类:其他好文   时间:2014-11-13 22:26:26    阅读次数:293
Path Sum ****
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:其他好文   时间:2014-11-13 22:21:29    阅读次数:215
关于WinIO.DLL的键盘输入模拟
关于WinIO.DLL的键盘输入模拟 最近在找键盘模拟的方式,最后在网上找到了一个WinIO.DLL的IO键盘模拟按键的方式。但是居然那个方法是有问题的。我造了全局的hook监视键盘信息,发现它只是有keyDown和keyPress的消息,keyUp的信息是up了一个zoom的键。 搞了2天终于.....
分类:Windows程序   时间:2014-11-13 18:45:57    阅读次数:327
android学习之VelocityTracker
今天大概的学习了一下 VelocityTracker,用来监控手势速度的,在View移动过程中,可以有个缓冲的移动。我觉得初步的使用起来是很简单的。首先移动依靠的是Scroller类,Scroller中有个fling的方法,将MotionEvent的Up之后检测的手势速度提供给scroller之后,...
分类:移动开发   时间:2014-11-13 16:27:25    阅读次数:267
POJ3176——Cow Bowling(动态规划)
Cow BowlingDescriptionThe cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up ...
分类:其他好文   时间:2014-11-13 14:33:03    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!