"abc", "bca" and "cab" are rotations of one another. Group a list of strings so that each group holds exactly the rotations of one string.
"abc", "bca" and "cab" are rotations of one another. Group a list of strings so that each group holds exactly the rotations of one string.
The discussion opens with the full question.