Round 1: Coding
Questions:
Question 1
Amazon Prime Games is designing a game. The player needs to pass n rounds sequentially. The rules of play are as follows:
- The player loses power[i] health to complete round i.
- The player's health must be greater than 0 at all times.
- The player can choose to use armor in any one round. The armor will prevent damage of min(armor, power[i]). Determine the minimum starting health for a player to win the game.
Question 2
A team of financial analysts at Amazon has designed a stock indicator to determine the consistency of Amazon's stock in delivering returns daily. More formally, the percentage return (rounded off to the nearest integer) delivered by the stock each day over the last n days is considered. This is given as an array of integers, stockPrices. The stock's k-consistency score is calculated using the following operations:
- In a single operation, omit a particular day's return from the stockPrices array to get one less element, and rejoin the parts of the array. This can be done at most k times.
- The maximum number of contiguous days during which the daily return was the same is defined as the k-consistency score for Amazon's stock. Note that the return may be positive or negative. As part of the team, you have been assigned to determine the k-consistency score for the stock. You are given an array stockPrices of size n representing the daily percentage return delivered by Amazon stock and a parameter k.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.
Round 2: Scenario Based
Questions:
- Given 2 features. Which one would you choose?
- Your teammate asks for help but it's after the office hours, will you help?
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.
Round 3: Leadership Questions
Questions: Specific question not provided.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.