Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 522 Bytes

File metadata and controls

24 lines (19 loc) · 522 Bytes

String Rotation

Challenge Description:

You are given two strings. Determine if the second string is a rotation of the first string.

Input sample:

Your program should accept as its first argument a path to a filename. Each line in this file contains two comma separated strings. E.g.

Hello,lloHe
Basefont,tBasefon

Output sample:

Print out True/False if the second string is a rotation of the first. E.g.

True
True