Showing 3 of 33 questions
Imagine a grid with horizontal and vertical bars that can be removed. Find the largest possible square you can cut out by strategically removing some of these bars to create a square-shaped hole.
#1. Maximize Area of Square Hole in Grid
You are given an array of integers. Find the minimum positive starting value so that the step-by-step sum is never less than 1.
#2. Minimum Value to Get Positive Step by Step Sum
You're given two arrays. For each number in the first array, find the next larger number in the second array.
#3. Next Greater Element I