I've been solving coding questions on various sites like LeetCode, codewars for over a month now. My code exceeds the time limit for a few problems but it's mostly because of the algorithms I choose.
Lately, I've been reading a lot about how C++ is the best language for most coding platforms and that most questions are framed keeping in mind that they'll probably be solved in C++.
It makes me think if I should start learning C++. I've become very comfortable with python and it's libraries.
Do you think it's wise to start learning a new language after being used to one?
Note: I only do competitive programming so that I can be fast at coding interviews, not as a sport.
Videos
hello everyone. fyi, I am in grade 9(half year through), and do have a bit of math olympiad background. another qn is: should I really consider c++ straightaway, due to the more probable TLE in python (especially since efficiency is very much required in competitive prog. ,) or should I take it slowly and acclimatise myself with python first? thank you so much!
Hi All,
I have seen a Lot of post about competitive programming, and mostly they use C++, because of STL, Faster IO etc. So want to know if Python is good choice of language.
If I choose Python, What are some topics I should focus for competitive programming?
I have just started cp and I find that I am extremely interested in it. I am in my first year in college. I have been using python as my only language for my past three years though I started cp barely weeks ago. I tried learning c earlier but I found that it was not usually worth it as how much ever I try my mind first thinks in python and then translates into c so it was just a waste of time. However now I am facing huge pressure from my peers and mentors to learn c++ as there is no hope for python in cp. I am confused at what to do because my dream is to become a red coder before I finish college and I am not sure whether I should spend a considerable amount of time learning a new language that I am not really interested in.