When I solve any problem, I just look at the constraints and figure out the time complexity the problem allows.
But, out of curiosity, how do problem setters decide how much time limit should be there?
- Do they consider performances of languages other than C++?
- How much difference can a time limit of 1 second and 2 seconds make?