Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. def rotate_string(a, b)
  2. return false if a!=b && a.length != b.length
  3. a = a*3
  4. return true if a.include?(b)
  5. return false
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement