Learn algorithms once.
Understand them everywhere.
A beautifully organized, open-source collection of classic algorithms implemented in multiple programming languages.
This repository helps you learn, compare, and truly understand algorithms by seeing how the same idea is expressed across different languages.
Algorithms are universal — syntax is not.
This project exists to:
- 🧠 Help you understand algorithms deeply, not just memorize code
- 🔍 Compare the same algorithm across different programming languages
- 📘 Provide clean, beginner-friendly, real-world examples
- 🌱 Grow as a community-driven learning resource
Whether you're a student, self-learner, or developer, this repository is built for clarity and learning.
-
🔎 Searching Algorithms
Binary Search, Linear Search, and more -
🔃 Sorting Algorithms
Bubble Sort, Selection Sort, and upcoming classics -
🧮 Mathematical Algorithms
Fibonacci, GCD, and other fundamentals
Each algorithm is implemented consistently across languages to make comparison easy and intuitive.
Currently available implementations:
- 🐍 Python
- ⚙️ C
- 🚀 C++
- 🌀 Go
More languages and algorithms are continuously being added.
algorithms-across-languages/
│
├── binary_search/
│ ├── main.py
│ └── main.c
│
├── power/
│ ├── main.c
│ └── main.py
│
├── bubble_sort/
│ ├── main.c
│ └── main.py
│
├── is_prime/
│ ├── main.c
│ └── main.go
│
└── README.md
Clean. Simple. Easy to explore.
Clone the repository:
git clone https://github.com/Arbabpouri/algorithms-across-languages.gitChoose a language folder and start exploring.
Run the code, read it, compare it — and learn.
This is a community-driven project, and contributions are always welcome ❤️
You can contribute by:
- ➕ Adding new algorithms
- 🌐 Implementing existing algorithms in new languages
- ✨ Improving code clarity or documentation
- Keep code simple and readable
- Use clear and meaningful variable names
- Follow the existing folder structure
- Add comments where they add real value
Feel free to open a Pull Request anytime 🚀
- Computer science students
- Beginners learning algorithms
- Developers comparing languages
- Curious minds who love problem-solving
If you want to understand algorithms, not just copy them, you belong here.
This project is licensed under the MIT License.
You are free to use, modify, and distribute this project.
If you find this repository helpful:
- Give it a ⭐ star
- Share it with others
- Contribute and help it grow
Let’s learn algorithms — across languages 🌍