Answer the question
In order to leave comments, you need to log in
Python for algorithmic tasks?
Hello.
Is Python suitable for solving algorithmic problems?
Or is it too slow?
Or is it all the same for speed, the main thing is that the algorithm is correct?
Answer the question
In order to leave comments, you need to log in
There is such a project https://projecteuler.net/
There are just a lot of tasks that require the design of algorithms to obtain results in a reasonable time.
So - I practically did not stumble upon the limitations of the Python language so far. Only in a few tasks I used C only because it was lazy to look for a more optimal algorithm, but I wanted to solve it with a simple enumeration and quickly))
In real life, you can always write a library in C as a last resort, which can be docked to speed up data processing. But in 100+ real projects that I have encountered - this has never been required.
Depending on the purpose for which you study algorithms, if to prepare for an interview in a company like Google, Amazon or just for yourself, then I think this is a great option. If you are preparing for olympiads such as ACM ICPC, then I think it’s better to look at languages such as C ++, since there are time and memory limits for tasks, and the same algorithm in python and, for example, C ++ will differ in execution time)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question