1
0
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-12-11 00:21:24 +01:00

feat(challenges): add heap-algorithm

This commit is contained in:
Divlo
2021-11-08 16:56:22 +01:00
parent d97fe47377
commit 12d0d1b37a
11 changed files with 909 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
# heap-algorithm
Created by [@Divlo](https://github.com/Divlo) on 8 November 2021.
## Instructions
Write a program that generates all possible unique permutations of a string.
## Source
- [Heap's Algorithm - Wikipedia](https://en.wikipedia.org/wiki/Heap%27s_algorithm)
## Examples
### Example 1
#### Input
```txt
abc
```
#### Output
```txt
abc
bac
cba
bca
cab
acb
```
See the `test` folder for examples of input/output.