You are viewing a single comment's thread. Return to all comments →
Here's my haskell solution
rotate n s = take (length s) $ drop n $ cycle s allRotations s = flip rotate s <$> [1..length s] main = interact $ unlines . map (unwords . allRotations) . tail . lines
Rotate String
You are viewing a single comment's thread. Return to all comments →
Here's my haskell solution