An open API service indexing awesome lists of open source software.

https://github.com/ferhatgec/gechsort

Gechsort loves permutations.
https://github.com/ferhatgec/gechsort

lib python python3 script sort sorting-algorithms

Last synced: about 2 months ago
JSON representation

Gechsort loves permutations.

Awesome Lists containing this project

README

          

# Gechsort
## Gechsort loves permutations.

### Algorithm (pseudo):
```rust
f(data: list)
(min, mid, max, sort) := min_of(data), mid_of(data), max_of(data), sort(data)
(permutations, generated) := p(elements), empty([])

for per arr in permutations :=
if first_of(arr) == min and last_of(arr) == max and mid_of(arr) == mid :=
append(generated, arr)
=:
=:

for per arr in generated :=
if arr == sort :=
return arr
=:
=:
```

### Gechsort licensed under the terms of MIT License.