Showing 3 of 4 questions
Determine if a string containing parentheses is valid. A valid string has matching and properly nested opening and closing parentheses.
#1. Valid Parentheses
Given a sorted array, find the first and last position of a given target value. If the target is not found, return [-1, -1].
#2. Find First and Last Position of Element in Sorted 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
Page 1 of 1 · 4 total