DSA PYTHON!

HELLO DSA MENTORS!
Week 3 contest
Aren’t there any Resources for python programmers in Data structures
As you provided Resources for C++ STL :slightly_smiling_face:
@sidhant007 @adhyyan1252 @socho @anon38711361 @samrath491
@murugappan_s @smjleo @vinay47

3 Likes

Yes.You can find it in GeeksforGeeks

1 Like

I would strongly recommend not to pursue in Python if you plan to submit a lot of problems on Codechef/Codeforces/etc which involve STL data structures usage. Most problems that requires sets/maps often have 10^5 size of input and most of these problems therefore cannot be ACed in Python because of the inherent slowness of the language in comparison to C++/Java.

4 Likes

I don’t want to say that I disagree with you, but recently I have seen a master using just python for Competitive Programming. I agree that there is not as much community support as cpp, but it isn’t impossible I guess ?

upd: even a Grandmaster (Red Coder on codeforces)

4 Likes

Yep, looks like this person does code in Python and is able to get most questions done. But I would still consider it as a huge opportunity cost to pick Python for CP. Mainly because as you can see to improve the efficiency of the program you need to be able to code in PyPy and CPy (Flavours of Python, that forms executables, i.e are compiled) as can be seen in this users submission. Also most onsite contests, ex. IOI/IOI-TC/ICPC Regionals/ICPC World Finals do not guarantee an AC solution to exist in Python for every problem in the problem set (and don’t have support for PyPy), so it restricts the contests that you can use Python in.

4 Likes