Dates:
Got mail from amazon that they are looking for 2024 and 2025 graduates with an apply link on 8 July 2025
OA mail -> 11 July 2025
OA taken -> 12 July 2025
OA cleared mail -> 15 July 2025
Interview Mail -> 8 Aug 2025
Interview Date -> 11 Aug 2025 (Reschudled to 29 Aug 2025)
There were 2 interviewer:
First they both introduce them self and then i introduced my self.
Then started with one Amazon Principle question:
What was the time you learn something like in your college days, projects
Then Came 2 coding Question:
Q1. Given a number n in the form of string (0 < length(n) < 1e5). Your task is to find whether the number is divisible by 12 or not.
A number x is divisible by y if x mod y is equal to 0.
Sample:
Input - 4
Output - False
Input - 48
Output - True
Answer:
If the number is divisible by 3 and 4 then it is divisible by 12.
for divisible by 3 sum of the all digits should be divisible by 3.
and for divisible by 4 last 2 digit should be divisble by 4.Question 2:
Problem Link: https://leetcode.com/problems/detonate-the-maximum-bombs/description/
Q2. Amazon operates a network of delivery hubs across different cities Each hub has a service coverage radius within which it can activate and coordinate other hubs. When a hub is activated, it can automatically trigger activation of all hubs that fall
within its services coverage area.
Each hub is represented as a 2D integer array hubs where hubs[i] = [xi, yi, ri].
-> (xi, yi) denotes the geographical coordinates of the hub.
-> ri denotes the coverage radius of that hub.
You may choose to activate only one hub initially. Once activated, that hub can trigger all other hubs within its coverage. Those hubs can further trigger the hubs within their coverage, and so on.
Your task is to determine:
What is the maximum number of hubs that can be activated if you are allowed to start with only one hub?
input: [[1,2,3],[2,3,1],[3,4,2],[4,5,3],[5,6,4]]
output: 3
Constraints:
1 <= n <= 100
1 <= xi,yi,ri <= 1e5
Answer:
create a directed graph with nested loop, connect 2 index if distance of cordinates of index i and index j is in the range of radius of i.
Then apply BFS or DFS from each node which will return the maximum visited nodes if we start from the current node.
-> They were thinking of follow-up questions but the time ended.All this happen in one hours no extra time.
Comments (3)


