Skip to content

Commit 43717fe

Browse files
authored
Update README with algorithm execution instructions
Added instructions for running algorithms from the command line.
1 parent e3b01ec commit 43717fe

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,19 @@ We are on [Discord](https://the-algorithms.com/discord) and [Gitter](https://git
5050
## 📜 List of Algorithms
5151

5252
See our [directory](DIRECTORY.md) for easier navigation and a better overview of the project.
53+
54+
## ▶️ Running an Algorithm
55+
56+
Most algorithms in this repository can be executed directly from the command line.
57+
58+
```bash
59+
python path/to/algorithm.py
60+
```
61+
62+
For example:
63+
64+
```bash
65+
python searches/binary_search.py
66+
```
67+
68+
Many implementations include doctests, assertions, or example usage that will run automatically when the file is executed.

0 commit comments

Comments
 (0)