Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-10-11 05:30:54
阅读次数:
228
题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo...
分类:
其他好文 时间:
2014-10-10 20:19:34
阅读次数:
176
模拟一个生成验证码的效果,发现JS代码中加上alert可以正常刷新,没有alert时图片就会丢失,找到解决方法,但是还不是很明白,先记录下来。 生成验证码的servlet代码如下:package servlet;import java.awt.Color;import java.awt.Fo...
分类:
Web程序 时间:
2014-10-10 18:08:04
阅读次数:
4997
public void fileChannelCopy(File s, File t) { FileInputStream fi = null; FileOutputStream fo = null; FileChannel in = null; FileChannel out = null...
分类:
编程语言 时间:
2014-10-10 16:51:44
阅读次数:
191
1.二维数组,即一维护int[][] arr1 = new int[3][2]; int[][] arr2 ={{2,4,3,6,22,7},{3,6,8,9},{10,13,24,5}}; public static void showArray(int arr[][]){ fo...
分类:
编程语言 时间:
2014-10-09 02:24:47
阅读次数:
208
public static void fileChannelCopy(File s, File t) { FileInputStream fi = null; FileOutputStream fo = null; FileChannel in = null; FileCha...
分类:
编程语言 时间:
2014-10-08 13:58:55
阅读次数:
181
Validation.FO使用指南框架说明这是一个验证框架,并且是一个独立的验证框架,不依赖与其他已有的框架;可以自由的嵌入到其他框架,比如Spring、Struts等流行框架,但实质来说他是独立的,所以无所谓嵌入到哪里,如果需要在GUI桌面应用中,也是完美的;配置简单,可自由扩展验..
分类:
其他好文 时间:
2014-10-08 00:04:45
阅读次数:
414
USING GIT IN XCODEUSING BRANCHESBranches can be a very effective tool to isolate new features or experiments in code. Xcode has pretty good support fo...
分类:
其他好文 时间:
2014-10-07 16:01:23
阅读次数:
168
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2014-10-07 15:21:03
阅读次数:
236
第一步先来建一个最简单的Windows窗体应用程序,并为项目命名为WinFormTest,解决方案为WinFormSetup第二步在窗体Form中添加一个按钮并在按钮事件中添加代码,只做测试因此简单一点namespaceWinFormTest{publicpartialclassForm1 : Fo...
分类:
其他好文 时间:
2014-10-05 13:38:08
阅读次数:
196