Contiguous Array — Prefix Sum

Measure the longest unbroken run of bulbs where off ones and on ones are equal in count; zero if there is none.

Prefix Sum · Medium

More in Prefix Sum

All algorithm problems