I don't know how this stupid thing keeps timing out, but I guess I'm moving over to a competitor. First test and it's broken. Sample tests take <1s but attempting times out every time.
Your solution takes too much time to execute. There are limits on this task, for how long your execution might take. You need to think about this task in a simpler maner :)
I don't know how this stupid thing keeps timing out, but I guess I'm moving over to a competitor. First test and it's broken. Sample tests take <1s but attempting times out every time.
is it because i use loop? maybe take loop out?
Thanks WildsG! When you say simpler, do you mean shorten my code or write it differently?
Your solution takes too much time to execute. There are limits on this task, for how long your execution might take. You need to think about this task in a simpler maner :)
This comment is hidden because it contains spoiler information about the solution