• Stars
    star
    111
  • Rank 314,436 (Top 7 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 10 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

https://www.hackerrank.com/domains/algorithms/

HackerRankAlgorithms

Link to HackerRank

Enjoy the awesomeness: https://www.hackerrank.com/domains/algorithms/

Keep pushing.

Languages

The repo is mixed up with Python 2.7.x and C++11/Java8. C++11/Java8 is to solve some problems otherwise TLE or stack overflow in Python.

Notes: TLE & MLE

Failed attempts are kept in the source code as documentation, which are annotated as TLE (Time Limit Exceeds) or MLE (Memory Limit Exceeds).

To Run in HackerRank

To run the code in HackerRank OJ, under if __name__ == "__main__":, change the following:

    f = open("0.in", "r")
    # f = sys.stdin

to

    # f = open("0.in", "r")
    f = sys.stdin

If you like it, star ⭐ the repo.