Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66305ad

Browse files
authored
Rephrase doc comment & move to appropriate function
1 parent ac42c95 commit 66305ad

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Recursive/PalindromePartitioning.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
/*
2-
* Problem Statement: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s.
3-
* what is palindrome partitioning?
4-
* - Palindrome partitioning means, partitioning a string into substrings such that every substring is a palindrome.
5-
* Reference to know more about palindrome partitioning:
6-
* - https://www.cs.columbia.edu/~sedwards/classes/2021/4995-fall/proposals/Palindrome.pdf
7-
*/
8-
91
import { palindrome } from './Palindrome'
102

3+
/*
4+
* Given a string s, return all possible palindrome partitionings of s.
5+
* A palindrome partitioning partitions a string into palindromic substrings.
6+
* @see https://www.cs.columbia.edu/~sedwards/classes/2021/4995-fall/proposals/Palindrome.pdf
7+
*/
118
const partitionPalindrome = (s) => {
129
const result = []
1310
backtrack(s, [], result)

0 commit comments

Comments
 (0)