随笔分类 - 算法
摘要:今天在写flex时遇到了,需要过滤数组中重复数据的问题,查询后发现,flex没有java中set这样的集合,可以用来直接去重。就简单的写了个快速去重算法,测试了一下,速度挺快的。我array里是String类型,如果类型是其它的,替换String就行了。肚子饿的很,今天不加班了。。早早的回吧。/** * Created with IntelliJ IDEA. * User: DongYang * Date: 13-3-25 * Time: 下午7:46 * Progress every day a little more. */package com.skycloud.nettopo.uti.
阅读全文
摘要:/** * Created with IntelliJ IDEA. * User: DongYang * Date: 13-3-5 * Time: 下午11:04 * To change this template use File | Settings | File Templates. */package org.un.cava.birdeye.ravis.editor {import flash.display.Graphics;import flash.geom.Point;import mx.charts.LinearAxis;import org.un.cava.birdeye.r
阅读全文
摘要:1 import java.util.ArrayList; 2 import java.util.Collections; 3 import java.util.List; 4 5 /** 6 * Created with IntelliJ IDEA. 7 * User: dell 8 * Date: 13-3-5 9 * Time: 下午8:3810 * To change this template use File | Settings | File Templates.11 */12 public class Group {13 public stati...
阅读全文