How to count the number of triplets found in a string? - Python

后端 未结 0 1530
死守一世寂寞
死守一世寂寞 2020-12-08 03:58

string1 = "abbbcccd" string2 = "abbbbdccc"

How do I find the number of triplets found in a string. Triplet meaning a character that appears 3 time

相关标签:
回答
  • 消灭零回复
提交回复
热议问题