兰亭集势2013校园招聘试题。
投递职位:软件开发工程师,笔试通过,接到面试但是没有去。公司总部在望京利泽中园启明国际大厦.据说上午的面试很是混乱,问的技术问题不多。
char s[] = "lightinthebox";
printf("%s%d",s+5,sizeof(s));
A. lightinthbox13 B. inthebox13
C. inthebox14 D. lightinthebox14
A. 26% B.28% C. 30% D. 32%
A.TCP B.UDP C.ICMP D.DHCP
A. 链表 B.队列 C.树 D.数组
A. 11/32 B.9/16 C.13/32 D.11/16
A.2 B.3 C.4 D.5
A. select * from table where id = 1;
B. select * from table where id in(3,4) and name like '李%';
C. select * from table where id = 3 and name like '%李'
D. select * from table where type = 'test';
A. CBEFDA B.FEDCBA C.CBEDFA D.不定
A. 堆排序 B.快速排序 C.希尔排序 D.归并排序
A. 1/2 B.1/3 C.1/4 D.1/5
思路:双向扫描。交换
思路:暴力搜索或者Trie树
思路:简单DP.老题
思路:给每个集合一个唯一的质数,如分别为2,3,5 根据每个数所在的集合求出乘积,然后将乘积相同的数字合并即可。如:数字1在集合1中,乘积为2
数字2在集合1,2,3中,乘积为2*3*5 =30 ,依次类推
非计算机专业开发几道题目:大部分相同,除了几个选择题和一道大题目:
选择题3. 根据规律。第五个数是多少?3/2, 2/3, 5/12 ,3/10
A.5/6 B.8/15 C.7/30 D.8/35
选择题7.设R为实数集,函数f: R->R,f(x) = 2^x.则f是()
A.漫射函数 B.入射函数
C.双射函数 D.非入射非满射函数
程序设计题2:Imlement a function that rotates an array by anumber ofpositions,srite the function in[] rotateAraar(int[] input,int n);which rotates the input array by n positions,For example,the array[1,2,3,4,5,6]rotated by 2positions returns [5,6,1,2,3,4]
思路:数组旋转,经典的三次翻转法可以达到O(N)的时间复杂度。