From 43717feef26e1bbad0b6c9465572fe46776ff0c0 Mon Sep 17 00:00:00 2001 From: Meenaksh Singhania <151125112+meenaksh06@users.noreply.github.com> Date: Tue, 30 Jun 2026 12:34:33 +0530 Subject: [PATCH] Update README with algorithm execution instructions Added instructions for running algorithms from the command line. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 182d36a8d905..4724302947fe 100644 --- a/README.md +++ b/README.md @@ -50,3 +50,19 @@ We are on [Discord](https://the-algorithms.com/discord) and [Gitter](https://git ## 📜 List of Algorithms See our [directory](DIRECTORY.md) for easier navigation and a better overview of the project. + +## ▶️ Running an Algorithm + +Most algorithms in this repository can be executed directly from the command line. + +```bash +python path/to/algorithm.py +``` + +For example: + +```bash +python searches/binary_search.py +``` + +Many implementations include doctests, assertions, or example usage that will run automatically when the file is executed.