Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ankit Mahato
    @animator
    Please post your doubts and questions here!
    Diwakar Jaiswal
    @diwakarjaiswal880
    sir, I have a doubt regarding doing competitive programming same problem done in python got tle(time limit exceed ) but in another language(c,c++) do same but got right answer.
    is this ok to do cp in python?
    Ankit Mahato
    @animator
    @diwakarjaiswal880 it was the case 5 years back, but now a days algorithm contest problems have become more language agnostic and usually TLE only if your algorithm is less efficient .. just have a google codejam solutions for past few years .. you will observe the same.
    Ankit Mahato
    @animator
    in python usually if you are using nested for loops you might experience TLE as for Java/C++ it will be magnitudes faster, but the winning solution is always more efficient and languages don't matter for those solutions.
    b-mohan
    @b-mohan
    When the next chapters will be available Sir?
    Ankit Mahato
    @animator
    @b-mohan you will be notified via email when the next chapters are published. Thanks for reading!
    Ashish Agrawal
    @Agro_ashish_twitter
    @animator my terminal output:- You are using pip version 19.2.3, however version 20.0.2 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command
    But the command is not working
    Ankit Mahato
    @animator
    @Agro_ashish_twitter try using python -m pip install --upgrade pip
    Ashish Agrawal
    @Agro_ashish_twitter
    @animator /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip
    Above is the output for the command suggested by you.
    1 reply