Skip to main content

4 docs tagged with "Array"

View all tags

Combination Sum

Find all unique combinations of distinct integers that sum up to a target value.

Container With Most Water

Given an array representing the heights of vertical lines, find two lines that, along with the x-axis, form a container holding the…

Flood Fill

Given a 2D grid representing an image, a starting pixel's coordinates, and a new color, change the color of the starting pixel and all…

Rotting Oranges

Return the minimum time until no fresh oranges remain, or -1 if impossible.