Beta
Rotated string
191 of 368pinelopi
Description:
Write to function that takes as argument two strings and returns positive (True/true/1) if one string is a rotation of the other or else it returns False/false/0.
For example:
# ohell is left rotation of hello
is_rotation('hello','ohell') => True
# elloh is right rotation of hello
is_rotation('hello','elloh') => True
Algorithms
Strings
Similar Kata:
Stats:
Created | May 3, 2015 |
Published | May 3, 2015 |
Warriors Trained | 675 |
Total Skips | 30 |
Total Code Submissions | 3071 |
Total Times Completed | 368 |
Python Completions | 191 |
JavaScript Completions | 138 |
Java Completions | 62 |
Total Stars | 16 |
% of votes with a positive feedback rating | 86% of 209 |
Total "Very Satisfied" Votes | 160 |
Total "Somewhat Satisfied" Votes | 38 |
Total "Not Satisfied" Votes | 11 |
Total Rank Assessments | 203 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 2 kyu |
Lowest Assessed Rank | 8 kyu |