Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    what happens when the substring is in the start of the string, i.e what will be the index of the substring in this case?

    (hint: only one character has to be added to this line if s2.find(s1)>0:

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution