We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b29a933 commit 64d7ee9Copy full SHA for 64d7ee9
scripts/algorithms/R/Remove Palindromic Subsequences/Remove Palindromic Subsequences.java
@@ -1,8 +1,9 @@
1
-class Solution
+// Runtime: 0 ms (Top 100.00%) | Memory: 42.3 MB (Top 19.55%)
2
+class Solution
3
{
- public int removePalindromeSub(String s)
4
+ public int removePalindromeSub(String s)
5
- int left = 0 , right = s.length() - 1 ;
6
+ int left = 0 , right = s.length() - 1 ;
7
while( left < right )
8
9
if( s.charAt(left++) != s.charAt(right--) )
@@ -12,4 +13,4 @@ public int removePalindromeSub(String s)
12
13
}
14
return 1 ;
15
-}
16
+}
0 commit comments