Amazon products are stored hierarchically within their respective categories. Products have various metadata, such as current price and whether they are…
Suppose you are given 2 unordered lists of Amazon products with product id, price and a gift coupon worth S amount. Can you write a function to find 1 p…
Like Button States A button can appear in three different states: normal , hovered , and clicked . In the normal state, the button is outlined with a ne…
A new Amazon intern encountered a challenging task. Currently, the intern has n integers, where the value of the i th element is represented by the arra…
A student is preparing for a test from Amazon Academy for a scholarship. The student is required to completely read n chapters for the test, where the i…
AWS provides scalable systems. A set of n servers are used for horizontally scaling an application. The goal is to have the computational power of the s…
Data scientists at Amazon are working on a logistics optimization tool to arrange delivery routes based on existing route patterns. A prototype algorith…
Amazon OA: Minimum Boxes to Unload The supply chain manager at one of Amazon’s warehouses is shipping the last container of the day. All n boxes have be…
The manager of the Amazon warehouse has decided to make changes to the inventory. Currently, the inventory has n products, where the quality of the i -t…
Given an array watch_history of size n , that represents the web series watched by a viewer over a period of days, and two integers, series1 and series2…
Amazon is developing a regex matching library for NLP use cases. A prototype regex matching implementation has the following requirements: The regex exp…
Amazon’s database doesn’t support very large numbers, and hence, numbers are stored as a string of binary characters, ‘0’ and ‘1’ . Accidentally, a ‘!’…
Allocate limited inventory items based on a priority algorithm. During a flash sale on Amazon, customers submit requests for a limited quantity of a pro…
You are analyzing the market trends of Amazon stocks. An AWS financial service model returned an array of integers, PnL (Profit and Loss), for your port…
Amazon has multiple delivery centers all over the world. A city is given in the form of a grid where the delivery centers are marked as 1 and all other…
Amazon Web Services has n servers where the vulnerability score of the i -th server is vulnerability[i] . A client wants to deploy their application on…
Question 1 New Year’s Day is around the corner and Amazon is having a sale. They have a list of items they are considering but they need to remove some…
Data scientists at Amazon are working on a utility for genome sequencing algorithms. The utility finds anagram patterns in pairs of DNA sequence strings…
Amazon OA Interview Question: Maximize the Sum of Channel Medians Amazon’s AWS provides fast and efficient server solutions. The developers want to stre…