mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-12-11 00:21:24 +01:00
fix(solutions): fix: more memory issues thanks to -fsanitize=address flag with gcc
This commit is contained in:
@@ -6,6 +6,8 @@ Created by [@theoludwig](https://github.com/theoludwig) on 8 November 2021.
|
||||
|
||||
Write a program that generates all possible unique permutations of a string.
|
||||
|
||||
The order of the generated permutations is important, see the example below.
|
||||
|
||||
## Source
|
||||
|
||||
- [Heap's Algorithm - Wikipedia](https://en.wikipedia.org/wiki/Heap%27s_algorithm)
|
||||
@@ -25,10 +27,10 @@ abc
|
||||
```txt
|
||||
abc
|
||||
bac
|
||||
cba
|
||||
bca
|
||||
cab
|
||||
acb
|
||||
bca
|
||||
cba
|
||||
```
|
||||
|
||||
See the `test` folder for examples of input/output.
|
||||
|
||||
Reference in New Issue
Block a user