Skip to content

Commit 49470f2

Browse files
committed
add palindrome partion
1 parent 767f69f commit 49470f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

palindrome-partitioning/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
## Recursion
12

2-
## TODO
3-
* write down thinking
3+
```
4+
i = 0 .. end
5+
6+
partition(s) = s[0..i] + partition(s[i+1 .. end]) if s[0..i] is palindromic
7+
8+
```
49

0 commit comments

Comments
 (0)