Showing 3 of 4 questions
You are a knight trying to rescue a princess in a dungeon. Determine the minimum initial health you need to survive and reach the princess, navigating rooms that either increase or decrease your health.
#1. Dungeon Game
Given an array, sort it using pancake flips. Each flip reverses a portion of the array; find the sequence of flips to sort the array.
#2. Pancake Sorting
You are given a collection of intervals. Merge all overlapping intervals into a single interval and return the result.
#3. Merge Intervals
Page 1 of 1 · 4 total