Given a string, count the triplets, where a triplet is three letters with the first and third equal, such as axA.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Count triplets in a string where the first and last character are the same.Split a string of a's and b's with at most 2 cuts so Alice and Bob get equal letter counts.Given a list of strings, find the number of occurrences of the second letter of the first word, and return the character and its count.Related courses

Course

Course
Course
