Showing 3 of 8 questions
You're given a list of asteroids, each with a size and direction (positive is right, negative is left). Figure out which asteroids will survive after all collisions happen.
#1. Asteroid Collision
You're given a grid of numbers and a threshold. Find the maximum side length of a square subgrid whose sum of elements is less than or equal to the given threshold.
#2. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
You're given a grid where some cells are dangerous. Find the path from the top-left to the bottom-right with the maximum possible safety, minimizing the maximum danger encountered along the path.
#3. Find the Safest Path in a Grid
Page 1 of 1 · 8 total