Check if strings are rotations of each other or not in Java
In this tutorial we have two strings S1 and S2, write a function to check whether s2 is a rotation of s1 or not ?If s2 is a rotation of s1 , return true otherwise its return false.
In this tutorial we have two strings S1 and S2, write a function to check whether s2 is a rotation of s1 or not ?If s2 is a rotation of s1 , return true otherwise its return false.