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

The greedy solution of taking the maximum change close to your wanted 0 difference passes the pretests, but fails on the main tests. 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