Help with vectors

do vector having elements n takes O(n) time when initialized with 0.?
can this can lead to TLE when inside main ?

Yes and Yes - there was an interesting recent example of this - I’ll see i I can find it.

Edit:

Here we are: TLE for my code but AC for almost same code?

5 Likes