find the maximum count of consecutive time string b appears in string a
By
write a program in javascript to find the maximum count of consecutive time string b appears in string a . For example if a = "popodfspo", b = "po". The output will be 2 since "po" appears 2 times consecutively in string a.
Posted 1 year ago