秋天的专栏

学习笔记

计算车站距离

public final class Demo { private static int[] miles = new int[5]; private static String[] stations = {"S1","S2&am...

2015-01-25 22:22:02

阅读数 14

评论数 1

求最大连续子序列长度(阿里巴巴2015研发岗机试算法第一题)

由于准备不充分,妥妥的被阿里虐了。 import java.util.Scanner; public class GetMaxSeqLength { /** * 题目: * 给定一个query和一个text,均由小写字母组成。 * 要求在text中找出以同样的顺序...

2014-09-01 17:09:02

阅读数 27

评论数 0

直接插入排序

public class InsertSort { /** * 直接插入排序算法 * 将一个记录插入到已经排序好的有序表中 * @param args */ public static void main(String[] args){ int num...

2014-09-01 10:44:01

阅读数 17

评论数 0

线性表实现(JAVA)

package NodeList; public class ListStructs { final int MAXSIZE = 20; //存储空间分配量 Object data[]; //数组存储的数据元素,最大值为MAXSIZE static int length; ...

2013-09-26 10:15:16

阅读数 13

评论数 0

1000:A+B problem

Problem Description   Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, outpu...

2012-07-02 11:01:55

阅读数 10

评论数 0

1001:Sum Problem

Problem Description Hey, welcome to HDOJ(Hangzhou Dianzi University Online Judge). In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ...

2012-05-24 19:30:41

阅读数 602

评论数 0

1001:Sum Problem

Problem Description Hey, welcome to HDOJ(Hangzhou Dianzi University Online Judge). In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ...

2012-05-24 19:30:00

阅读数 7

评论数 0

1000:A+B problem

Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A...

2012-05-24 16:02:16

阅读数 470

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭