摘要: private static int SequenceSearch(int[] a, int key) { for (int i = 0; i < a.Length; i++) { if (a[i] == key) { return i; } } return -1; }太简单,不解释,留个纪念!别以为这就可以了,上面的还能优化,不可能吧... 阅读全文
posted @ 2013-04-17 15:10 烟鬼 阅读(232) 评论(0) 推荐(0) 编辑