This problem Fredo and large numbers uses a technique called data compression(as mentioned in the problem tag). I am stuck in this problem for very long. I am not able to understand the editorial of this question as there are no comments to elaborate the explanation. Any logic to solve this problem or the editorial explained will be appreciated.
Brute Force approach is giving timeout.
Please suggest an efficient algorithm
Aucun commentaire:
Enregistrer un commentaire