Skip to content

Commit 30c830f

Browse files
committed
Runtime: 1780 ms (Top 68.62%) | Memory: 64.1 MB (Top 88.11%)
1 parent 32c8066 commit 30c830f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/P/Palindrome Pairs/Palindrome Pairs.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
var palindromePairs = function(words) {
1+
// Runtime: 1780 ms (Top 68.62%) | Memory: 64.1 MB (Top 88.11%)
2+
var palindromePairs = function(words) {
23
let wmap = new Map(), ans = []
34
for (let i = 0; i < words.length; i++)
45
wmap.set(words[i], i)
@@ -33,4 +34,4 @@ const isPal = (word, i=0, j=word.length-1) => {
3334
while (i < j)
3435
if (word[i++] !== word[j--]) return false
3536
return true
36-
}
37+
}

0 commit comments

Comments
 (0)