Amazon SDE 1 Onsite | Seattle | November 2021
Anonymous User
514

Round 1: Amazon fresh has several categories of items, eg: poultry, fresh food, bakery, etc. You are given a List<List<Product>> containing all the items in different categories. Each category's items are arranged in ascending order of expiration date. You want to return a List<Product> where all the items are arranged in ascending order across all categories. You cannot add all the products from all the categories into the list and then sort the final list. Product class is defined as follows:

public class Product {
	String name;
	int price;
	//expiration date can be considered int for simplicity
	@NonNull Instant expirationDate;  //eg: 00-00-00:00:00 
} 

Round 2: Fully behavioral, LPS, with SDM
Round 3: Design a parking garage (small medium large cars can only be parked in S, M, L slots)
Round 4: Given an array of values, create a binary tree from the values. Follow up: Find the sum of the tree level by level.

LPs: tell me a time when... {you took on more responsibility than you needed to, completed a project in a strict deadline, had a disagreement with a coworker, learned something on your own, made a mistake that affected the team, and some more along these lines...}

Comments (2)