2018-10-01

write a program to check if strings are rotations of each other or not


1 comment:

  1. s1="aabcd"
    s2="bcdaa"

    result=s1+s1 ="aabcdaabcd"
    result.contains(s2)

    if return true, its a rotation
    else not

    ReplyDelete