亚麻SDE1波特兰过经

Location: Portland, OR
Role: SDE (They will make decision based on work experience and interview performance whether you will fit for SDE I or SDE 2)

Online Assessment: 2 coding questions (60 minutes)Make sure to go through these https://leetcode.com/discuss/interview-question/344650/Amazon-Online-Assessment-Questions .

One of the question is little modification to this https://leetcode.com/discuss/interview-question/356960

Phone Screen: 1 hour (30mins LP + Coding)
Coding:

Given array of sentences, return the set of words that are in one sentence but not all.

For example:

“My dog eats food”
“She eats food too”
“My dog food is good good”

Would return [‘She’, ‘too’, ‘is’, ‘good’]

 public List<String> extract(String[] strs){
    List<String> result = new ArrayList<>();
    
    boolean first = true;
    Set<String> main;
    
    Set<String> removed= new HashSet<>();
    for(String str: strs){
        String[] temp = str.split(" "); 
        
        if(first){
           main = new HashSet(temp);
           first = false;
        }else{
            for(String s: temp){ "She eats food too"
                if(main.contains(s)){
                    main.remove(s);
                    removed.add(s);
                }else{
                    if(!moved.contains(s))main.add(s);
                }
            }
        }
    }
    
    for(String s: main){
        result.ad(s);
    }
    
    return result;
}

Well, you can write more optimized code. I came up with above code in 15mins.

Onsite Interview : 6 rounds (9:00 AM - 3:00 PM)

1st Round: 30 mins Leadership Principles(LP) + System Design
Give a complete system design for Amazon shipping label website.

This website creates a shipping labels based on (source/destination) , which shows preview of print label with estimated time of delivery and sends notification to third party carriers (Like UPS, Fedex etc). Assume currently website is available to only one state, later on we will expand all states in USA. Your system should be highly scalable as per demand.
Follow up: How your system design changes when new carrier is added? (May be i didn’t answer this well)

2nd Round: 30 mins Leadership Principles(LP) + Coding question https://leetcode.com/problems/copy-list-with-random-pointer/

3rd Round: 30 mins Leadership Principles(LP) + Coding Question
Add two arbitrarily large numbers and return sum.
It won’t fit in Int or Long.

I told i will take them as Array of characters or String. So it’s like Add two Strings https://leetcode.com/problems/add-strings/
Follow:

Now make changes to handle floating numbers too.
What is the longest number you can hold?? Ans: I said, it depends on the memory of the machine.
4th Round: Lunch, just casual talk about amazon culture with lunch buddy. This is not part of interview

5th Round: 30 mins LP + Coding question https://leetcode.com/problems/coin-change/

6th Round: 60mins Hiring Manager (LP)

1 Like

能问一下楼主面的是哪个组吗