I have problems with TLE

i KEEP GETTING TLE WITH ARRAYS.hOW DO I RETIFY THIS.

Hi,
maybe the arrays aren’t the problem - the algorithms you are using might be a problem. Beside the algorithm, I can give you other tips. You must carefully use the arrays and you should try to resize them as less as possible. Resizing an array can often be O(n), while if you are doing it O(q) times, the total complexity will be O(nq).

1 Like
//