Problem Statement: Design a video lifecycle management system. A video may consist of different stages during its life cycle: Uploaded to TikTok Encoded…
Given a string num that contains only digits and an integer target , return all possibilities to insert binary operators + , – , or * between the digits…
The input is a string containing open and close parentheses. Find the minimum number of parentheses that need to be added in order to balance the input…
I have a file with the following format, each line: startIP, endIP, cityName . Question: Write a function that takes as input an IP address and outputs…
Data Processing Pipeline: n tasks — tasks have ids [0,1,2,…,n-1]. Task Ti depends on task Tj — [Ti, Tj] — task Ti cannot start unless task Tj has fini…
Given an array of distinct integers candidates and a target integer target , return a list of all unique combinations of candidates where the chosen num…
Given a starting node in a directed graph of immutable nodes, find a set of nodes that either: have an IP address, or can reach a node having an IP addr…
LRU Map Design a data structure that supports storing key-value pairs and evicting the least recently used entry when capacity is exceeded. Implement th…
Guests may want to visit multiple cities during one trip. Hotels in these cities offer various prices for the different days within the guest’s trip. Yo…
Each word must be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same let…
Assigning Multiple Orders to a Dasher DoorDash optimizes Dasher efficiency by assigning multiple orders from nearby restaurants to the same Dasher. This…
Oncall shifts of people with start and end time Name | Start | End Adam | 10 | 100 Ben | 50 | 70 Cathy | 150 | 300 Diane | 60 | 120 We give a start and…
Imagine something like Ticketmaster or StubHub: the goal is to allow customers to book event tickets anytime, anywhere. 这道 Amazon VO 题本质上是在考一个在线购票平台的高层设…
Imagine you are building a proxy (edge layer) application API endpoint which receives a JSON payload. But you don’t know the structure of this payload….
You are given a sorted list of distinct integers from 0 to 99, for instance [0, 1, 2, 50, 52, 75] . Your task is to produce a string that describes the…
Given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most one element. We define an array as non…
A data center has K computing nodes. Each node has a current load T and C CPU cores. The maximum load a single CPU core can handle is 200 , so the total…
Input is a list of numbers representing the temperature of a city in the past few years. Please compute the average and median temperature given a time…
Dict Bot We are building a small chat bot that can receive messages and keep track of what everyone has said. Given a sequence of messages, implement a…
Design a data structure that supports the following operations: push(x) : pushes an integer x onto the stack pop() : removes and returns the most freque…