Insights From Problem: Codeforces 1227C: Messy (View all problems)
- if you reverse a non-regular bracket sequence where the amts of all the ( and ) brackets are as required, then you get a regular bracket sequence. ))()()(( because they always come in this sort of form - ))()())))((((( (()()(((()))))) by s3rena_cc
- if u reverse such a sequence that already has aregular bracket sequence within. it, you get an extra regular bracket sequence?? prefix? thingo? ))))))()() by s3rena_cc
- bc its prefixes, its (((( then after u fulfill it becomes only worrying about the ()()() after (((()))) of the start )(regula rbracket systems embedded in other areas) by s3rena_cc
- reverse the starts of regular bracket sequences to rediuce the cnt of them e.g. ()()() (())() by s3rena_cc
- reverse the insides of regular bracket sequence to generate more ((())) (()()) ()()() by s3rena_cc
- u could compare it to a regular bracket sequence and flip whenever theres a mismatch, this will result in a maximum of m actions. by s3rena_cc
Page 1 of 1.
View links to all pages
1About • Privacy Notice • Rules • Problems list • Journal • Your profile • GitHub
Moon Symbol icon by Icons8 • Sun icon by Icons8 • Emojis from Twemoji by Twitter under CC by 4.0