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
让咱们先来看一下数组实现栈的例子:package chaper1;import
java.util.Arrays;import java.util.EmptyStackException;public class Stack_Test00
{ private Object[] elements...
分类:
其他好文 时间:
2014-05-07 12:38:09
阅读次数:
257
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
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
【题目】
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
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
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 判断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
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
有时候为了省事觉得这样就可以初始化一个数组
int main(int argc,char ** argv)
{
int arrays[11]={10};
}...
分类:
编程语言 时间:
2014-04-29 13:32:21
阅读次数:
300