Leetcode variants
1. Dasher Max Profit (Dynamic Programming)
You're a dasher, and you want to try planning out your schedule. You can view a list of deliveries along with their associated start time, end time, and dollar amount for completing the order. Assuming dashers can only deliver one order at a time, determine the maximum amount of money you can make from the given deliveries.
The inputs are as follows:
int start_time: when you plan to start your schedule
int end_time: when you plan to end your schedule
int d_starts[n]: the start times of each delivery[i]
int d_ends[n]: the end times of each delivery[i]
int d_pays[n]: the pay for each delivery[i]
The output should be an integer representing the maximum amount of money you can make by forming a schedule with the given deliveries.
Example #1
start_time = 0
end_time = 10
d_starts = [2, 3, 5, 7]
d_ends = [6, 5, 10, 11]
d_pays = [5, 2, 4, 1]
Expected output: 6
2. Dasher Menu
At DoorDash, menus are updated daily even hourly to keep them up-to-date. Each menu can be regarded as a tree.
A menu can have many categories; each category can have many menu_items; each menu_item can have many item_extras; An item_extra can have many item_extra_options…
class Node {
String key;
int value;
boolean active;
List children;
}
coding online assesment virtual onsite. interviewers were professional and helpful. asked to deep dive on project. recruiter was responsive and could align with offer deadlines. was helpful with negotiations. coding problems were average difficulty.
Walking into the coding interview, I was taken aback when they asked about finding the K nearest restaurants based on coordinates. Just days before, I had stumbled on a mock on prachub.com that mirrored this question almost exactly. The interview felt straightforward, but I struggled with some behavioral questions. Overall, the experience was underwhelming; I expected more technical depth. After several rounds, they decided to go in another direction, which was disappointing given my prep efforts.
Perguntas de entrevista [1]
Pergunta 1
Given a list of restaurants with their coordinates and a user's location, find the K nearest restaurants
Fiz uma entrevista na empresa DoorDash (Londres, Inglaterra).
Entrevista
it was very easy, they ask basic programming questions, can be solved with minimal prep, however they ask a lot about why u want to work here, be prepared to talk for a long time