Amazon SDE II , Pune
Company: Amazon
Role: SDE II
Interview Stage: Onsite
Location: Pune
Year: unknown
Original Post Content:
Technical Screening Online
DSA - https://leetcode.com/problems/first-missing-positive/description/
Questions around Java, Spring, and other backend-related topics.
# Loop Rounds
Conducted in office on the same day. Every round contained 2-3 Amazon principles.
- Loop Round 1
DSA Question
https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/description/
- Loop Round 2
Design a Cost Efficient File Storage System (HLD). Gave the design from Hello Interview.
- Loop Round 3
Questions around resume and previous work architecture.
- Loop Round 4
You are given a restaurant's weekly schedule in the form of a Map<String, List<int[]>>, where each key is a day of the week ("Monday" to "Sunday"), and each value is a list of time intervals representing when the restaurant is open. Each interval is of the form [start, end], where:
- start and end are integers between 0 and 1439, representing minutes past midnight.
- An interval like [1380, 120] represents a time from 11:00 PM on Monday to 2:00 AM on Tuesday.
- The intervals do not overlap, but they may wrap to the next day.
You are also given access to a helper function:
Pair<String, Integer> parseTimestamp(String timestamp);
It returns:
- The day of the week as a String (e.g., "Tuesday")
- The minutes past midnight as an int (e.g., 90 for "01:30")
Your task is to implement the method:
public boolean isOpen(Map<String, List<int[]>> schedule, String timestamp)
Return true if the restaurant is open at the given timestamp, false otherwise.
Comp: https://leetcode.com/discuss/post/6907630/amazon-sde-2-pune-by-nileshyadav6633-vs8e/