Showing 3 of 26 questions
You're given quantities of different products and a number of stores. Distribute the products among the stores, maximizing the number of products each store receives, but minimizing the largest amount any single store gets.
#1. Minimized Maximum of Products Distributed to Any Store
Given an array of integers and a list of queries, count the number of peaks within various subarrays specified by the queries.
#2. Peaks in Array
Given a grid representing land and water, count the number of distinct islands. An island is formed by connected land cells.
#3. Number of Islands