注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
只看贴不回贴,就像只领福利不交税。今天俺良心发现了。
phone
电话两道题很简单。要O() 和测试Case
public List<String> format(List<String> ss, int length){
if(ss==null || length==0) return new ArrayList<String>();
// case 1: abc 12345 aa, len=10
// case 1: abc 123456 aa, len=10
// case 1: abc123456aa, len=10
//O(m*length)
Set<String> delimits = new HashSet<>();
delimits.add(" ");
delimits.add(".");
delimits.add(",");
delimits.add("-");
/font>}
return res;
}
onsite:
1. reverse pairs in a linked list
2. Give an array of integer. Generate new array that each element is the product of whole array except itself.
3. 2 sum with no duplicated result
4. OO. design a employee class
5. SD. Make it searchable of a list of payment files. Find which person pay how much
6. 3 Threads print its own thing, say thread one prints string "one", thread two prints "two"...
Make them print in order like “one two three one two three...”
7. HR project you are proud of, most challenge technically, how you investigate production issues, any bug you made
how to deal with different opinions.
公司不错,可惜废了。
|