Problem 4055 · Medium

Count Shadow Pairs II

Count rising index pairs with no middle value strictly between their endpoints. Values equal to an endpoint do not block.

Open the interactive visualisation