Problem link : https://codeforces.net/problemset/problem/478/D
The editorials says that the max height is independent of the colors of the block and can be calculated directly through the total number of blocks.
I am not able to prove it. I need mathemetical/analytical proof of this.
Can anyone help please?
Auto comment: topic has been updated by pritishn (previous revision, new revision, compare).