Question: You are given a string which contains more than 1 0 characters and is compose of a series of A , B , C and

You are given a string which contains more than 10 characters and is compose of a series of A,B,C and D. Write a programme in python which returns all the 10-letter-long substrings that occur more than once in the given string. For example, for an input of "AAAAACCCCCAAAAACCCCCCAAAAABBBDDD", the output should be [AAAAACCCCC,CCCCCAAAAA]. For an input of AAAAAAAAAAAAA, the output should be ["AAAAAAAAAA"]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!