Viewing other problems with insights similar to only this insight from Codeforces 1860D: Balanced String:

Think about the constraints. Why n=100? If it was a greedy, or prefix sum, or segment tree problem, n would probably be larger. by Solarion

View links to all pages 1

AboutPrivacy NoticeRulesProblems listJournalYour profileGitHub

Moon Symbol icon by Icons8Sun icon by Icons8 • Emojis from Twemoji by Twitter under CC by 4.0