You're given a binary string. You can delete two equal adjacent characters however many times you like. Is it true that no matter how you delete adjacent characters, there is a unique shortest string that you can end up with?
I've been stuck on this for a while now. I suspect that the answer is yes, but I have no idea how to prove it. Please help me prove or disprove.
noone solves these hard things
Go touch some grass, bro. The obvious counter example is
001
in which you can end up with both 0 and 1 at the end.Sorry, I forgot to mention they need to be equal.
Idk why but this lowkey feels AI generated
I actually want to know ._.