a guest Jul 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def rotate_string(a, b)
- return false if a!=b && a.length != b.length
- a = a*3
- return true if a.include?(b)
- return false
RAW Paste Data