1class Solution:2 def maximumSubsequenceCount(self, text: str, pattern: str) -> int:3 total = count_a = count_b = 04 for c in text:5 if c == pattern[1]:6 total += count_a7 count_b += 18 if c == pattern[0]:9 count_a += 11011 return total + max(count_a, count_b)
WPM •0 •0
ACC •0 •0
TIME •0