Showing 3 of 72 questions
Determine if a string containing parentheses is valid. A valid string has matching and properly nested opening and closing parentheses.
#1. Valid Parentheses
Imagine a grid where each cell has a value. Your task is to find the number of island regions where the sum of the values in each island is perfectly divisible by a given number K.
#2. Count Islands With Total Value Divisible by K
Imagine you're watering a garden using strategically placed taps. Find the fewest taps you need to open to water the entire garden, given each tap's watering range.
#3. Minimum Number of Taps to Open to Water a Garden
Page 1 of 1 · 72 total