Skip to content

Commit b7a4860

Browse files
committed
Runtime: 615 ms (Top 6.03%) | Memory: 86.7 MB (Top 24.65%)
1 parent a8e57d7 commit b7a4860

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/P/Palindrome Partitioning/Palindrome Partitioning.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 615 ms (Top 6.03%) | Memory: 86.7 MB (Top 24.65%)
12
var partition = function(s) {
23
let result = []
34
backtrack(0, [], s, result)
@@ -19,7 +20,7 @@ function backtrack(i, partition, s, result){
1920
}
2021
}
2122
}
22-
23+
2324
function isPal(str){
2425
return JSON.stringify(str.split('').reverse()) === JSON.stringify(str.split(''))
25-
}
26+
}

0 commit comments

Comments
 (0)