Given an array of meeting time intervals consisting of start and end times [s1, e1], [s2, e2], …, determine if a person could attend all meetings with…
Imagine you have an RPC server that produces a log of entries, and you’re analyzing it offline. There are two entries for each call: one when the RPC st…
The feature recommends a set of products that you have not already purchased, from the things that your friends have bought, in order from most bought t…
Interleaving Streams We are building a page that pulls posts from multiple different sources and displays them in a unified feed. You are going to build…
Maximum Product Subarray Given an integer array nums , find the contiguous subarray within the array that has the largest product, and return the produc…
You are in charge of creating new bank accounts when a user signs up as an RBC customer. When creating a new bank account, a valid bank account number m…
Q1 Given a sum of money, compute the minimum number of bills and coins that equal that sum. Assume you only have the following denominations: Bills: 20,…
Given an array of integers nums and an integer k , return the total number of subarrays whose sum equals k . A subarray is a contiguous non-empty sequen…
Moving Day Description You and several roommates are coordinating a move out into several new apartments. Only two trucks of different sizes are availab…
Say we have a tournament of some sort. It doesn’t really matter what the tournament is for; all we need to know is that each game in the tournament is 1…
Your task is to write a function that, given a distance d and a stream of floating-point values received one at a time, checks for groups of three value…
Given a positive integer (including 0), convert it to its hexadecimal representation. Input: n (integer) Output: A string representing the hexadecimal v…
Part 1: Validate if a given tree is a unival tree. Part 2: Count the number of unival subtrees. A unival tree is an n-ary tree in which all nodes have t…
Given a two-dimensional array of letters, find whether a given word can be written in any one of the 8 directions. In other words, the word may appear h…
Given an input array, return a result array where each element at index i is the product of all values in the input array except input[i] . Example inpu…
Track Customer Visits and First-Time Visitors Millions of customers visit our website every day. For each customer, we have a unique identifier that sta…
Given a non-negative integer a , compute and return the truncated integer of the square root of a . Note: You are not allowed to use any built-in expone…
Max Area of Island You are given an m x n binary matrix grid . An island is a group of 1 ‘s (representing land) connected 4-directionally (horizontally…
You are a Backend Engineer at DoorDash and realized that your service can no longer keep up with traffic. In order to deal with the increased load, your…