Problem 2060 · Hard

Check if an Original String Exists Given Two Encoded Strings

A digit run counts as that many unknown characters. Walk both encodings with a pending difference that s1 and s2 must cancel.

Open the interactive visualisation