Skip to content

Commit 64d7ee9

Browse files
committed
Runtime: 0 ms (Top 100.00%) | Memory: 42.3 MB (Top 19.55%)
1 parent b29a933 commit 64d7ee9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
class Solution
1+
// Runtime: 0 ms (Top 100.00%) | Memory: 42.3 MB (Top 19.55%)
2+
class Solution
23
{
3-
public int removePalindromeSub(String s)
4+
public int removePalindromeSub(String s)
45
{
5-
int left = 0 , right = s.length() - 1 ;
6+
int left = 0 , right = s.length() - 1 ;
67
while( left < right )
78
{
89
if( s.charAt(left++) != s.charAt(right--) )
@@ -12,4 +13,4 @@ public int removePalindromeSub(String s)
1213
}
1314
return 1 ;
1415
}
15-
}
16+
}

0 commit comments

Comments
 (0)