These solutions are for Problem. This solution -> My Implementation goes TLE. whereas this solution -> Editorial goes AC when both have the exact same idea just implemented differently.
Same solution different implementation but one is TLE whereas one is AC. Can anyone explain?
These solutions are for Problem. This solution -> My Implementation goes TLE. whereas this solution -> Editorial goes AC when both have the exact same idea just implemented differently.