Showing 3 of 85 questions
Simulate a single-threaded CPU processing tasks with varying arrival times and processing durations. Determine the order in which the CPU processes the tasks to minimize idle time, and return the processing order.
#1. Single-Threaded CPU
Find the longest path in a matrix where each step increases in value. You can only move up, down, left, or right.
#2. Longest Increasing Path in a Matrix
Imagine a grid representing rooms, some empty, some with walls, and some with gates. Fill each empty room with the distance to its nearest gate.
#3. Walls and Gates
Page 1 of 1 · 85 total