Description You are given an array of integers that represent the height of apartment buildings. The leftmost building is at index 0 , and the array lis…
Fuse Lidar and Camera Obstacles You are given two lists of obstacles detected by different sensors: lidar_obstacles and camera_obstacles . Each obstacle…
Finding Fish Card Game V2 (Base Code Available) Description To do this, we will provide code that lets us simulate a deck of cards and players. If you a…
The Unix find command allows you to search for files under a given directory. You can specify criteria for files you are interested in. Imagine that you…
You are a developer for a university. Your current project is to develop a system for students to find courses they share with friends. The university h…
Prison Break Description A prisoner is planning to escape from prison! The prison’s gate consists of horizontal and vertical bars that are spaced one un…
Given a binary tree, compute the diameter of the tree. The diameter is the longest path between any two nodes in the tree. 这道题要求计算二叉树的直径,也就是树中任意两点之间最长路径…
Implement a mock client for testing. Do not rely on its behavior in your implementation. class MockClient implements Client { // These numbers are for t…
You are given an array of integers. Implement a class that can support the following operations: Get the sum of elements in a specific index range Updat…
Design a Donations Website Donations Website Features: Users donate to charity Donation confirmations Donations paid to charity Design a website to coll…
Given a dictionary of words and a pair of words. For the pair, display the possible word chain using the input as the starting and ending words. Print a…
Problem 1: Given a budget of $3000 dollars to buy Apple products, create an algorithm to print all possible combinations of products you can buy. Given…
Given a list of strings, find the groups of strings that can be rotated to each other (so each character is changed by the same distance). Input: [‘abc’…
Design a system that allows DoorDash’s consumers to add reviews on ordered food items. Consumers will earn rewards ($) based on the quality of the revie…
Given an array of integers that is an arithmetic progression missing one integer, return the missing integer. Example: [1, 2, 4, 5] -> 3 这道题的核心是等差数列缺项定位…
Implement a program that finds the shortest path of links between one Wikipedia URL and another. You can imagine the final result is something similar t…
You are given an array of events where events[i] = [startDayi, endDayi] . Every event i starts at startDayi and ends at endDayi . You can attend an even…
Given a collection of strings, write a function that can group the anagrams together. You can return the answer in any order. Test collection: [“able”,…