There are N holes arranged in a row in the top of an old table. We want to fix the table by covering the holes with two boards. For technical reasons, t…
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…
Counting Game The counting game is a widely popular casual game. Every participant in the game must count numbers in sequence. However, if the next numb…
Design and implement a simplified recording storage service that manages audio/video recordings with time-to-live (TTL) functionality. All operations sh…
You are a senior chemist working in a cutting-edge molecular research laboratory. Your team has developed a revolutionary molecular reactor that can syn…
In cooking terms, a recipe is a prep-list combination of ingredients if you can prepare it by joining together the first several ingredients from the ar…
Latency Analysis Divide a network of data centers into optimal local regions. Given a network of g_nodes data centers and g_edges bidirectional connecti…
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…