Answer the question
In order to leave comments, you need to log in
Are there services for evaluating code/algorithms?
Good day.
I thought: are there online services for calculating the running time and spent code memory on different PLs?
It is convenient to prepare for the Olympiads and, in general, work with a textbook on algorithms.
If someone knows, please share.
Answer the question
In order to leave comments, you need to log in
It seems that all competitive sites have it. On the same topcoder and code forces and leetcode.
Everything is relative, a lot of parameters influence - compiler / interpreter optimization, processor / memory performance, overall system operation, etc. You can only see the difference with respect to another algorithm. For JS, I use this https://jsperf.com/ but it's much more convenient to measure the time/memory of the required section of code using the language itself. Another JS example
console.time('algo1');
//.. алгоритм 1
console.timeEnd('algo1');
console.time('algo2');
//.. алгоритм 2
console.timeEnd('algo2');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question