注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
1. word ladder
2. giving a string return get the key command and return
3. design a vote system for 4 singers from 100000000 customer.
4. giving list of record with time stamp , find the most frequent one.
Example:
customer department time
1 A 10
2 B 11
1 B 11
2 A 12
2 B 13
3 transfers that happened :
1 A->B
2 B->A->B
A->B
B->A
A->B
A->B : 2 times
B->A : 1 time
most common: A->B
class keySet()){
if(ct < map.get(cur)){
ct = map.get(cur);
res[0] = Integer.parseInt(cur.substring(0 , 1));
res[1] = Integer.parseInt(cur.substring(1));
}
}
return res;
}
}
|