Skip to content

Commit f7a445d

Browse files
authored
Add running instructions for algorithms
Added instructions for running algorithms from the command line.
1 parent e3b01ec commit f7a445d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,18 @@ 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+
```bash
64+
python searches/binary_search.py
65+
```
66+
67+
Many implementations also include examples, doctests, or assertions that demonstrate expected usage and output.

0 commit comments

Comments
 (0)