Awesome Open Source
Awesome Open Source


Say Thanks! Open Source Love contributions welcome Join the chat at Number of Algorithms

Data Structures and Algorithms Tweet

Clean example implementations of data structures and algorithms written in different languages.

List of implementations

Algorithms list


  • Contributions are always welcome. Language doesn't matter. Just make sure you're implementing an algorithm.

  • PRs are welcome. To begin developing, follow the structure:

    algorithm_name/language-name/file_name.extension e.g bubble_sort/python/

  • If there is an implementation of the same algorithm in your language, add your username in front of the file name. E.g., if the already existing algorithm is binary_sort and your user name is my_name, just name the new file as 'my_name_binary_sort'.

  • Please include a description for the algorithm that you are implementing. It doesn't matter if it's copied from somewhere as long as it helps people that are learning new algorithm.

  • Graphical examples would be very helpful too.

  • Don't forget to include tests.

  • Don't remove previous implementations of algorithms. Just add a new file with your own implementation.

  • Beautify and cleanup your code for easier reading.


Curated list of resources dealing with algorithms.



To the extent possible under law, Zoran Pandovski has waived all copyright and related or neighboring rights to this work.

Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,121,606
Python (865,695
Java (404,416
Php (293,699
C Plus Plus (252,374
C (190,138
C Sharp (174,070
Jupyter Notebook (171,864
Golang (168,135
Rust (65,448
Algorithms (37,824
Scala (29,146
Cryptography (11,285
Structure (10,072
Data Structure (10,040
Interview (5,120
Hacktoberfest2021 (3,022
Computer Science (2,382
Codeforces (900
Algorithms And Data Structures (825