New course! Every coder should learn Generative AI!
Try a free lesson+ 7
Speed is the key to winning. Python wins the speed coding race so, if the algorithm is not time consuming, it is best. However, if the algorithm is time consuming, C++ wins the running race so might be the better choice. I would learn both well so you can pick the one that makes the most sense based on the challenge.