h******3 发帖数: 351 | 1 Palo Alto小公司, 不错的start up.
一上来半个小时, 三个题, 一张纸. 我开始没重视(字迹廖草), 最后就载在上面.
code, code, code强, 才有机会啊.
1. 给你一个整数数组 int[] arr, size较小. 请写出一个sort method.
comments: 我写的是selection sort. 题目里边数据量没有具体数据, 也无人可以问,
发题目的是recruiter. 如果你面世, 写那个啊? quick sort
2. step by step, explain what does server do when execute
select max(colname) from t1;
3. 一张表, 写with statement | j*****u 发帖数: 1133 | 2 说实话题目挺无聊的
,
【在 h******3 的大作中提到】 : Palo Alto小公司, 不错的start up. : 一上来半个小时, 三个题, 一张纸. 我开始没重视(字迹廖草), 最后就载在上面. : code, code, code强, 才有机会啊. : 1. 给你一个整数数组 int[] arr, size较小. 请写出一个sort method. : comments: 我写的是selection sort. 题目里边数据量没有具体数据, 也无人可以问, : 发题目的是recruiter. 如果你面世, 写那个啊? quick sort : 2. step by step, explain what does server do when execute : select max(colname) from t1; : 3. 一张表, 写with statement
| h******3 发帖数: 351 | 3 题目是否无聊没有标准, :D.
但是code 是否快并且正确, 却是令人刮目的,
【在 j*****u 的大作中提到】 : 说实话题目挺无聊的 : : ,
| d**f 发帖数: 264 | 4 我也来贡献一个不算无聊的题目
考基本功
function prototype:
bool ReplaceSubString( char* ori, const char* sub, const char* rep, int
buffersize );
要求不能用任何std lib,也就是strlen(),strstr()都需要你自己写
要求O(n) and in place.
ori is the original string;
sub is the sub-string need to be replaced;
rep is the replaced string;
buffersize is the 'ori' buffersize.
If the result str size is larger than the buffersize, return false.
题目的idea也很容易想出来,但是要在半个小时写出clean的code,必须是一个非常熟练
的码工. |
|