
笔试
Olav
这个作者很懒,什么都没留下…
展开
-
阿里巴巴2014笔试题及答案(9月22北京)
来源:http://blog.sina.com.cn/s/blog_6f83fdb40101eyzw.html阿里巴巴集团2014校园招聘笔试题(9月22北京) (答案仅是个人见解,欢迎补充更正,谢谢) 第一部分 单选题(前10题,每题2分;后10题,每题3分。选对得满分,选错倒扣1分,不选得0分)1、一次内存访问,SSD硬盘访问转载 2014-03-28 15:51:21 · 789 阅读 · 0 评论 -
Given an array of numbers, return array of products of all other numbers (no division)
来源:http://stackoverflow.com/questions/2680548/given-an-array-of-numbers-return-array-of-products-of-all-other-numbers-no-divint[] a = {1,2,3,4,5}; int[] r = new int[a.length]; int x = 1;转载 2014-09-22 23:02:59 · 837 阅读 · 0 评论 -
随机排序数组
参考资料:public class RandomShuffle {public static void main(String[] args) {int a[] = {10, 11, 12, 13, 14, 15, 16, 17, 18, 19};Random r = new Random();for (int i = 9; i > 0; i--) {int原创 2014-10-02 17:24:16 · 566 阅读 · 0 评论 -
堆排序
参考: package sort;import java.util.Arrays;public class HeapSort { public static void main(String[] args) { int[] a = {7, 23, 78, 21, 23 ,34, 233,254}; buildHeap(a); System.out.println原创 2014-10-03 16:42:55 · 530 阅读 · 0 评论