注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
前面有很多帖子都提到了,面试者在这一轮容易表现不佳。
我把所有问题和答案都做了一些记录。 最后的代码是关于Twitter 的 OOD设计。 时间很紧(半小时)。 我的代码有bug,最后没来得及修改。
40 tech quesition
1. linked list, .
2. HashTable, Tree.
"ab", "ac"
LinkedList.
HashMap.
OOD.
1.Inheritance.
2.Pholimothirm.
3.Singleton.
4.JUnit.
5.Log.
6.log in.
modify the logger.
capture that on.
login, and get err from db.
7.OS.
process, thread.
Process, . Thread, . thre integer.
It's lock. write.
8.Rest API.
SOAP.
URL.
Database.
name, address, RestAPI.
xxx/api/v1/user/userId
GET.
Response. 200.
xxx/api/v1/search/username/*name
xxx/api/v1/user/create
POST
response:
20x. User name has already been taken.
json.
9.
Coding question.
5~10. coding.
Follow, unfollow, posts.
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
/*
create a user acount(int userId) #name, accountname, emails
delete a user's account (int userId)
createPosts(String post, userId)
follow(followerId, followeeId)
HashMap<followerIdserId) || N <= 0)
return res;
List<String> posts = postsMap.getOrDefault(userId, new ArrayList<String>());
// sequence should latest first
int size = Math.min(N, posts.size());
for(int i=0; i < size; i++){
res.add(posts.get(posts.size()-i-1));
}
return res;
}
}
public class Solution {
public static void main(String args[] ) throws Exception {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
}
}
|