2024 Day 22 Complete!

This commit is contained in:
2024-12-22 08:16:42 -06:00
parent 06dada9c63
commit 4f5898255b
5 changed files with 1760 additions and 0 deletions

View File

@@ -228,6 +228,10 @@ func PrintProgress(curr, total int) {
fmt.Print("]")
}
func ClearProgress() {
fmt.Print("\b\b\b\b\b\b\b\b\b\b\b\b")
}
// StringPermutations takes a string and returns all permutations of it
func StringPermutations(str string) []string {
perms := stringPermHelper(str, 0)