mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-23 00:41:19 -04:00
Add some cool queue, stacks, strings, math, bit manipulation examples (#35)
This commit is contained in:
parent
f3ee2cdf52
commit
0f455a0322
24 changed files with 932 additions and 13 deletions
|
@ -0,0 +1,29 @@
|
|||
## sorting and searching
|
||||
|
||||
<br>
|
||||
|
||||
### `sorting_algorithms.py`
|
||||
|
||||
<br>
|
||||
|
||||
```python
|
||||
> python3 sorting_algorithms.py
|
||||
|
||||
|
||||
Array: [3, 5, 1, 2, 10, 6]
|
||||
Testing merge sort: [1, 2, 3, 5, 6, 10]
|
||||
Testing quick sort: [1, 2, 3, 5, 6, 10]
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### `binary_search.py`
|
||||
|
||||
<br>
|
||||
|
||||
```python
|
||||
> python binary_search.py
|
||||
Recursive: 6
|
||||
Iterative: 6
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue