Daily challenge for 2025-06-17
168. Largest Rectangle in Histogram
Write a function solve that finds the area of the largest rectangle that can be formed in a histogram represented by an array of heights.
Example:Input: [2, 1, 5, 6, 2, 3]Output: 10 (rectangle with height 5 and width 2)
Run this challenge interactively in Python or JavaScript when the app loads.