Ad
  • Custom User Avatar

    considering the requirement, you have to find what kind of checks you do that are actually doomed to lead to a dead end. Prune your implementation from those cases. The reference solution (mine) passes the tests in 3,7s, compilation time included. So you're clearly missing one (or several) important "simplifications". ;)