Ezvor

2647. Color the Triangle Red

HardArray Preparing judge… LeetCode
ArrayMath

Hints

Hint 1
Calculate the minimal value of k by strategically designing a monovariant.
Hint 2
Construct the solution four rows at a time, going bottom up.