注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
1. Hiring manager
2. Coding:
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
/*
Implement a data structure that will have two APIs - addInterval() and calculateRange()
An interval is given by a start and end number such as (5, 7).
addInterval() - this will store the interval
calculateRange() - this will calculate the range the data points cover. For example, [(11,12),(5,7), (6,9)] should return 5
Explanation: (5,7) and (6,9) overlap so range from first 2 intervals = 9-5=4; add 12-11 = 1 to get final range = 4+1 = 5
*/
public class Solution {
List<int[]> r return coverage;
}
}
3. Architecture design
Design a chat system (like WhatsApp)
1) 1 to 1 message
2) support photo
3) be able to load history from database
4) able to sync the user status
4. Architecture design
Design a bid system (like eBay)
1. Many users bid at the same time
2. Highly consistency
3. Check the bid history
4. Discount for a user with transaction more than 100
5. Interview (bar raiser)
|