n00m wrote:
On Nov 27, 5:24 am, astral orange <457r0...@gmail.com> wrote: [skip]How about the next problem: you are given string "s" (len(s) <= ~10000), in the string only letters 'a'..'z' Task: to count the number of all *different* substrings of "s" Example: s = 'abbaz' Its different substrings are: a b z ab bb ba az abb bba baz
abba bbaz
abbaz ================== Answer: 11
Answer: 13 -- http://mail.python.org/mailman/listinfo/python-list