CODEFORCES PROBLEM

http://codeforces.com/contest/797/problem/C
CAN ANYONE EXPLAIN ME THE SECOND EXAMPLE

3 Likes

Initially

S="acdb"     t=""       u=""
S="cdb"      t="a"      u=""
S="cdb"      t=""       u="a"
S="db"       t="c"      u="a"
S="b"        t="cd"     u="a"
S=""         t="cdb"    u="a"
S=""         t="cd"     u="ab"
S=""         t="c"      u="abd"
S=""         t=""       u="abdc"
3 Likes

I tried solving it. But getting wrong answer on T.C 33. Can’t find where it’s going wrong.
Any help? Thank you :slight_smile:
https://codeforces.com/contest/797/submission/59427528