Challenge overview
Hello and welcome to the challenge!
Write a code which checks if the given array arr
includes all rotations of the given string str
.
Example
ifContainsAllRots('abc',['abc','cab','bca','12']) -> true
ifContainsAllRots('123',['123','312']) -> false
Constraints
0 < length of str < 100
You can solve this programming contest in Ruby, JavaScript, Python and many other languages. If you want, you can also take part in other Challenges. Below you can find some of them:
Have fun and good luck! :)