Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given[100, 4,
200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-05-10 20:06:26
阅读次数:
404
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-06 00:51:29
阅读次数:
353
命令行如下find . -type f -size
+1000000kLinux系统下查找大文件或目录的技巧当硬盘空间不够时,我们就很关心哪些目录或文件比较大,看看能否干掉一些了,怎么才能知道呢?
#已易读的格式显示指定目录或文件的大小,-s选项指定对于目录不详细显示每个子目录或文件的大小 du.....
分类:
系统相关 时间:
2014-05-06 00:39:57
阅读次数:
504
Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given [100, 4,
200, 1, 3, 2],The longest...
分类:
其他好文 时间:
2014-05-05 23:01:41
阅读次数:
374
/**
* 设置窗体背景图片
* @author gao
*/
package com.gao;
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class...
分类:
编程语言 时间:
2014-05-05 13:19:17
阅读次数:
350
1.CSS3 边框:通过 CSS3,能够创建圆角边框,向矩形添加阴影,使用图片来绘制边框,如border-radius;box-shadow;border-image
2.CSS3 背景:CSS3 包含多个新的背景属性,它们提供了对背景更强大的控制。background-size;background-origin
3.CSS3 文本效果:CSS3 包含多个新的文本特性。tex...
分类:
Web程序 时间:
2014-05-05 13:12:25
阅读次数:
437
今天我们要学习的内容是如何利用Python生成一个随机的中文验证码,并将图片保存为.jpeg格式。
在这之前,你首先得了解Python中的PIL库。PIL是Python Imaging Library的简称,PIL是一个Python处理
图片的库,提供了一系列模块和方法,比如:裁切,平移,旋转,改变尺寸等等。在PIL库中,任何一个图像都是用
Image对象来表示的,所以要加载一张图片,...
分类:
其他好文 时间:
2014-05-03 17:07:06
阅读次数:
364
项目-属性-生成-条件编译符号而不必每次都在类前面#define了。
分类:
其他好文 时间:
2014-05-02 16:10:59
阅读次数:
1258
Where's Waldorf?
Given a m by n grid
of letters, ( ),
and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line o...
分类:
其他好文 时间:
2014-05-02 10:59:15
阅读次数:
514
去除win7电脑系统桌面图标的快捷方式的小箭头:
首先在桌面新建一个文本文档,设为去除箭头.txt,第二步,把如下代码粘贴到文档中。
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\image...