Skip to content

suyash248/ds_algo

Repository files navigation

Data structures & Algorithms (Python/Java)

Index

Topics

Tree

Graph

Array

Dynamic programming

Backtracking

Searching

Sorting

Heap

Trie

Queue

Linked list

Misc

How to run?

For python files:

  1. Move to <project-dir>, create virtual environment and then activate it as
$ cd <project-dir>
$ virtualenv -p python3 .environment
$ source .environment/bin/activate

Note: Step-1 is optional but recommended.

  1. Add project to PYTHONPATH as
$ export PYTHONPATH="$PYTHONPATH:." # . corresponds to current directory(project-dir)

If you are using PyCharm then it can be done under run configuration.

For java files:

  1. Compile & Run
javac <file_name>.java
java <Main>