Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66305ad

Browse files
authored
Rephrase doc comment & move to appropriate function
1 parentac42c95 commit66305ad

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
constpartitionPalindrome=(s)=>{
129
constresult=[]
1310
backtrack(s,[],result)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp