Sofdor Ali Is in Love

Limits: 1s, 512 MB

Against all the odds, Sofdor Ali has fallen in love. He wishes to gift the girl the sweetest of substrings from a given string.


This is a companion discussion topic for the original entry at https://toph.co/p/sofdor-ali-is-in-love