Amazon Interview Experience | SDE 1
Company: Amazon
Role: SDE 1
Interview Stage: Technical Interview
Location: Bangalore/Hyderabad
Year: unknown
Original Post Content:
Company: Amazon
Role: SDE 1
Location: Bangalore/Hyderabad
---
Round 1: OA
Coding Assessment: 2 DSA questions
Workstyles Assessment: Amazon’s Leadership Principles
Round 2: DSA
Q1. Two sum extended to Subset sum
Q2. Min Stack
Round 3:
Q1. Within a binary tree, a node x is considered good if the path from the root of the tree to the node contains no nodes with a value greater than the value of node. Given the root of a binary tree root, return the number of good nodes within the tree.
Q2. At Amazon, we often work with massive real-time data streams. To extract meaningful insights from such data, it’s essential to design systems that can efficiently summarize large volumes of incoming information.
You are asked to design a system that processes a stream of non-negative integers and maintains a real-time summary of all numbers observed so far.
The summary should be presented as a list of disjoint intervals, where each interval represents a contiguous sequence of observed numbers.
Exmple
Input: ["SummaryRanges", "addNum", "getIntervals", "addNum", "getIntervals",
"addNum", "getIntervals", "addNum", "getIntervals", "addNum", "getIntervals"]
[[], [1], [], [3], [], [7], [], [2], [], [6], []]
Output: [null, null, [[1,1]], null, [[1,1],[3,3]], null, [[1,1],[3,3],[7,7]],
null, [[1,3],[7,7]], null, [[1,3],[6,7]]]