int[] a = new int[]{1,2,3,4,5,6,7,8,9,10};
int[] b = new int[]{1,2,3,4,5,6,7,8};
有什么方法快速的找出这两个数组中不同的数字?
大家都动手写下 最后评测下谁的速度最快
...全文
34013打赏收藏
[算法]来玩玩算法吧-数组对比的问题
借wangjianjun02 (啊龙)的帖子 http://community.csdn.net/Expert/TopicView3.asp?id=5470821 有两个数组: int[] a = new int[]{1,2,3,4,5,6,7,8,9,10}; int[] b = new int[]{1,2,3,4,5,6,7,8}; 有什么方法快速的找出这两个数组中不同的数字? 大家都动手写下 最后评测下谁的速度最快