码迷,mamicode.com
首页 >  
搜索关键字:arrays    ( 3585个结果
POJ1035 Spell checker
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; imp...
分类:其他好文   时间:2014-05-07 21:49:42    阅读次数:369
第6条:消除过期对象的引用
让咱们先来看一下数组实现栈的例子:package chaper1;import java.util.Arrays;import java.util.EmptyStackException;public class Stack_Test00 { private Object[] elements...
分类:其他好文   时间:2014-05-07 12:38:09    阅读次数:257
列出某个目录下的所有Java文件
import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.junit.Test; public class ListFile { public void listJavaFil...
分类:编程语言   时间:2014-05-07 06:31:39    阅读次数:377
jdk_Arrays类_排序方法_研究
private static void sort1(int x[], int off, int len) { // Insertion sort on smallest arrays //长度小于7,采用冒泡排序 if (len < 7) { for (int i=off; ioff && x[j-1]>x[j];...
分类:其他好文   时间:2014-05-07 05:14:35    阅读次数:279
CareerCup之1.1字符串中字符判重
【题目】 Chapter 1 | Arrays and Strings 原文: 1.1 Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures? 译文: 实现一个算法来判断一个字符串中的字符...
分类:其他好文   时间:2014-05-07 04:27:41    阅读次数:312
Cracking the coding interview
CareerCup 目录 Chapter 1 | Arrays and Strings 1.1  Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures? 1.2 Write co...
分类:其他好文   时间:2014-05-07 04:25:44    阅读次数:320
Java Comparator
1 Arrays.sort(points, new comparator());2 3 public static class comparator implements Comparator {4 public int compare(Point p1, Point p2) {5 ...
分类:编程语言   时间:2014-05-05 23:32:10    阅读次数:444
ismember matlab
ismember 判断A中的元素在B中有没有出现 LIA = ismember(A,B) for arrays A and B returns an array of the samesize as A containing true where the elements of A are i...
分类:其他好文   时间:2014-05-05 22:25:11    阅读次数:317
【Union Find】JAVA implementation
import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Scanner; class UF { private int[] id; private int count; public UF(int N) { count = N; id = n...
分类:编程语言   时间:2014-05-03 21:21:44    阅读次数:336
C++数组初始化的问题
有时候为了省事觉得这样就可以初始化一个数组 int main(int argc,char ** argv) { int arrays[11]={10}; }...
分类:编程语言   时间:2014-04-29 13:32:21    阅读次数:300
3585条   上一页 1 ... 356 357 358 359 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!