码迷,mamicode.com
首页 >  
搜索关键字:分页 java    ( 306913个结果)
HDU 3656 二分+dlx判定
Fire station Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1308    Accepted Submission(s): 434 Problem Description A city's map can ...
分类:其他好文   时间:2014-07-22 23:01:35    阅读次数:287
【LeetCode】- Length of Last Word(最后一个单词的长度)
[ 问题: ] Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. [...
分类:其他好文   时间:2014-07-22 23:01:35    阅读次数:331
Java多线程之认识多线程
1、进程与线程的区别 进程是程序的一次动态执行过程。 线程就是把进程分成更小的单元进行。 2、Java实现多线程有两种方法。一是继承Thread类,另一种是实现Runnable接口。 Thread类是在java.lang包中定义的,一个类只要继承了Thread类,此类就称为多线程实现类。在Thread子类中, 必须明确地覆写Thread类中的run()方法,此方法为线程的主体。   调...
分类:编程语言   时间:2014-07-22 23:01:34    阅读次数:315
4Sum -- LeetCode
原题链接: http://oj.leetcode.com/problems/4sum/  这道题要求跟3Sum差不多,只是需求扩展到四个的数字的和了。我们还是可以按照3Sum中的解法,只是在外面套一层循环,相当于求n次3Sum。我们知道3Sum的时间复杂度是O(n^2),所以如果这样解的总时间复杂度是O(n^3)。代码如下:public ArrayList> fourSum(int[] num,...
分类:其他好文   时间:2014-07-22 23:01:34    阅读次数:328
Hadoop AWS Word Count 例子
在AWS里用Elastic Map Reduce 开一个Cluster然后登陆master node并编译以下程序:import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; ...
分类:其他好文   时间:2014-07-22 23:01:32    阅读次数:405
《Pro Android Graphics》读书笔记之第二节
Android Digital Video: Formats, Concepts and Optimization       Android Digital Video Formats: MPEG4 H.264 and WebM VP8    H.263 支持老显示器 MPEG4 SP   supported for commercial video(支持商业视频) 3GP Google在...
分类:移动开发   时间:2014-07-22 23:01:15    阅读次数:381
【LeetCode】- Search Insert Position(查找插入的位置)
[ 问题: ] Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in th...
分类:其他好文   时间:2014-07-22 23:01:15    阅读次数:270
Java swing 之边界布局
/** * java 边界布局 * @author gao */ package com.gao; import java.awt.BorderLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.Empty...
分类:编程语言   时间:2014-05-01 18:32:35    阅读次数:370
Java Swing 之流式布局管理器
流式布局管理器是面板的默认布局管理,...
分类:编程语言   时间:2014-05-01 18:13:34    阅读次数:386
Eclipse启动时提示fail to create the Java Virtual Machine问题的解决
今天偶然打开Eclipse,发现无法打开,出现如下提示: 后来经过上网查询,发现是eclipse.ini文件的问题,打开eclipse安装目录下的eclipse.ini文件: -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org....
分类:编程语言   时间:2014-05-01 08:33:54    阅读次数:455
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!