Showing 3 of 4 questions
Imagine you have a set of rooms, each containing keys to other rooms. Determine if you can visit all the rooms starting from room 0 by using the keys you find.
#1. Keys and Rooms
You're a taxi driver trying to maximize your earnings. Given a list of rides with start, end, and tip, find the maximum profit you can make by picking rides that don't overlap.
#2. Maximum Earnings From Taxi
You are given a number of dice and a target sum. Determine how many ways you can roll the dice to reach the target sum, considering each die has faces numbered from 1 to k.
#3. Number of Dice Rolls With Target Sum
Page 1 of 1 · 4 total