mercredi 28 décembre 2016

How to print non repetitive total number of sub string in c++ ?

Suppose a string str = "aabaa"

Its non repetitive sub strings are

  1. a
  2. b
  3. aa
  4. ab
  5. ba
  6. aab
  7. aba
  8. baa
  9. aaba
  10. abaa
  11. aabaa

Aucun commentaire:

Enregistrer un commentaire