Election Given a database of the results of an election, find the number of seats won by each party. There are some rules to going about this: There are…
You are given access to the data containing information about taxi drivers and their rides, created by April 15th, 2023. When calculating any time featu…
You are given an infinite supply of bricks. Each brick has one of two possible lengths: 2 units or 3 units. Your task is to build a wall of a specified…
You are given an array of uppercase and lowercase English letters, recording , representing a sequence of letters typed by the user. Your task is to cou…
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…
Waabi Message Delivery System Given the integer k , a list of messages as an array of strings, messages , and a sorted integer array timestamps represen…
An array is considered to follow an alternating parity pattern if it does not contain two consecutive integers of the same parity. In other words, conse…
Implement the missing code, denoted by ellipses. You may not modify the pre-existing code. Your task is to implement parts of a Naive Bayes algorithm fr…
Question 2 The current password is represented by the string currentPassword , consisting only of lowercase Latin letters. New password requirements hav…
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…
There are n jobs that can be executed in parallel on a processor, where the execution time of the i -th job is executionTime[i] . To speed up execution,…
For a grid of black and white cells with rows rows and cols columns, you’re given an array black that contains the [row, column] coordinates of all the…
Course Schedule You now have numCourses courses that need to be taken, labeled from 0 to numCourses – 1 . You are given an array prerequisites , where p…
You are asked to implement a linear interpolator. You are given n points on a 2-dimensional coordinate system (known as the knot points). When these poi…
Given a string s of lowercase English characters, the following operation can be performed any number of times: Choose three consecutive characters s[i]…
Given an undirected graph graph that is represented by its adjacency matrix, return whether or not it is possible to add no more than two edges to this…
Data scientists at Amazon are working on a utility for genome sequencing algorithms. The utility finds anagram patterns in pairs of DNA sequence strings…