sg13's blog

By sg13, history, 6 weeks ago, In English

In a programming contestant I see some of the contestants are able to solve the problem very fast, how do they do it?

Do they have a ready-made template in the solution class which has an implementation of all complex algorithms and they just use it without really implementing the algo by themselves?

For eg if something is based on finding inversions they use some function from the template & get the inversions? Or is there a way to create your own library or use someone else lib and import in the solution class to be used in some contest?

Please provide some guidance. If this kind of question is already answered then please provide the reference link.

  • Vote: I like it
  • -6
  • Vote: I do not like it

6 weeks ago, # |
  Vote: I like it +1 Vote: I do not like it

Yes, contestants often have templates containing implementations for common algorithms. Or they might copy algorithmic code from online resources such as kactl or