What are all the modules in python that can be used in competitive coding competitions

Can we Use networkx for graphs

1 Like

i wish import netwrokx and other libraries would work…sometimes optimal has tle but atleast we should have these awesome libraries…some advantage

I find heapq module very useful, it makes implementation of priority queue super simple.

This might be useful. Though it contains list of modules allowed in codechef only.

1 Like

just run the following code in codechef IDE
import pkg_resources
print(*pkg_resources.working_set)

1 Like

Some imports like numpy, matplotlib works fine on pyth3.6 but pypy3 gives nzec, felt important so shared this.