The notebook platform at Stripe is based on Jupyter. It does not perform well with a large number of active connections, so we want to route developers…
You must develop an algorithm to navigate a car through an optimal path while hitting every flag in the graph. You can gain points by: Giving a valid pa…
Given a good binary string, binString , perform zero or more swap operations on its adjacent good substrings such that the resulting string is the large…
A linear equation of two variables is defined as a * x + b * y = z . For an array of integers arr and some query value z , the minimum sum solution is t…
Devise a strategy to minimize the cost of processing n images, where each image requires specific filters applied for a defined time frame, and the cost…
For an array of n positive integers arr and an integer k , a subarray is considered good if it consists of at least k distinct integers. Find the minimu…
Given an array cardTypes where cardTypes[i] is the number of cards of type i , determine the minimum number of additional cards needed so that the cards…
Given an integer n representing the total number of TikTok users, along with two lists, influencers and followers , each of size n . For each index i ,…
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…
Moving Median Given an array of integers, return the moving median for each element based on the element and its N-1 predecessors, where N is the slidin…
There are K computing nodes in a data center. The current load of the i -th node is T[i] , and the node has C[i] CPU cores. Each CPU core can carry at m…
Given a matrix of size m x n , m denotes the row starting with index 0 and n denotes the column starting with index 0. The elements in the matrix are po…
1. Profitable Project Pairs In a tech company, there are n projects available for the team to work on. Due to resource constraints, they can only work o…
SQL: Combining Successful and Failed Transactions Analysis A financial technology service is conducting a comprehensive analysis of its transactions to…
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…
Implement the function remaining_leaves(n, m, leaves, winds) which takes as inputs the integers n and m , the 2D integer array leaves , and the string w…
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…
1. Heap Operations Complexity A heap is a special type of binary tree in which every parent node is less than or equal to its child node(s) (min-heap) o…
String Patterns Given the length of a word wordLen and the maximum number of consecutive vowels it can contain maxVowels , determine how many unique wor…
Data scientists at Amazon are working on a logistics optimization tool to arrange delivery routes based on existing route patterns. A prototype algorith…