Problem 1793 · Hard

Maximum Score of a Good Subarray

Maximize minimum-value times length over subarrays containing index k.

Open the interactive visualisation