码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
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?在原址上进行将矩阵旋转90度。如...
分类:其他好文   时间:2014-10-30 19:03:07    阅读次数:208
UVALive 6531 Go up the ultras 单调栈+RMQ
题目链接:点击打开链接 题意: 给定n座山 下面n个数字表示n座山的高度 若这座山u合法,则要满足: 1、若u的左边存在比u高的山,设v是u左边距离u最近的且严格比u高的山,在[v,u]之间至少有一座山x,使得x和u的高度差>=15000 2、右边也同理。 同时满足1、2的情况则算合法。 问: 输出所有合法的山。 思路: 求距离某个点最近的山就是维护一个单调栈,然后给...
分类:其他好文   时间:2014-10-30 00:13:47    阅读次数:204
BZOJ1584: [Usaco2009 Mar]Cleaning Up 打扫卫生
Description有 N头奶牛,每头那牛都有一个标号Pi,1 2 3 #include 4 5 #include 6 7 #include 8 9 #include10 11 #include12 13 #include14 15 #include16 17 #include18 19...
分类:其他好文   时间:2014-10-29 19:20:03    阅读次数:368
[LeetCode]Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. Follow up: Did you use extra space? A straight forward solution using O(m...
分类:其他好文   时间:2014-10-29 17:02:17    阅读次数:206
桥接 brctl
把eth0和wlan0桥接在一起作用:测试wlan0网卡的并发性能 两个网卡桥接后把linux主机模拟成一个“无线路由交换机”Vi br0.sh#!/bin/bashifconfig eth0 0.0.0.0 up #取消eth0的ipifconfig wlan0 0.0.0.0 upbrctl a...
分类:其他好文   时间:2014-10-29 14:44:05    阅读次数:180
mongodump and mongorestore of mogodb
The another tool will be mentioned in this blog, namely mongodump and mongorestore.  General speaking, it’s very useful to back up or to restore the data of database or collection by means of mongodu...
分类:数据库   时间:2014-10-29 02:00:22    阅读次数:224
ASP.NET下载远程图片保存到本地的方法、保存抓取远程图片
ASP.NET下载远程图片保存到本地的方法、保存抓取远程图片2012-05-16 11:25:51 我来说两句 收藏我要投稿以下介绍两种方法:1.利用WebRequest,WebResponse 类WebRequest wreq=WebRequest.Create("http://up.2cto.c...
分类:Web程序   时间:2014-10-29 00:12:15    阅读次数:190
[Android] 触屏setOnTouchListener实现图片缩放、移动、绘制和添加水印
本文主要讲述使用触屏实现图片缩放、移动、添加水印等功能,所以该篇文章主要通过setOnTouchListener监听实现该功能,如何使用RelativeLayout进行布局,MotionEvent.ACTION_DOWN:表明视图已经接收一次触摸,按下时触发、MotionEvent.ACTION_UP:表明视图停止接受一次触摸,被放开时触发、MotionEvent.ACTION_POINTER_DOWN:当屏幕上已经有一点被按住,再按下其他点时触发同时希望文章对大家有所帮助.protected void o...
分类:移动开发   时间:2014-10-28 20:11:31    阅读次数:284
os 计算机的启动
零、boot的含义先问一个问题,”启动”用英语怎么说?回答是boot。可是,boot原来的意思是靴子,”启动”与靴子有什么关系呢? 原来,这里的boot是bootstrap(鞋带)的缩写,它来自一句谚语:"pull oneself up by one's bootstraps"字面意思是”拽着鞋带把...
分类:其他好文   时间:2014-10-28 13:38:24    阅读次数:213
Python web develop - 1 set up environment
搭建开发环境首先,确认系统安装的Python版本是2.7.x:$ python --versionPython 2.7.5然后,安装开发Web App需要的第三方库:前端模板引擎jinja2:$ sudo apt-get install python-jinja*有python-jinja2 和py...
分类:编程语言   时间:2014-10-28 10:20:36    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!