Anishluke92 / RubySolution

Problem solving using Ruby programming language
0 stars 1 forks source link

One string shifted to another string? #69

Closed danielpaul closed 3 years ago

danielpaul commented 3 years ago

This problem was asked by Google.

Given two strings A and B, return whether or not A can be shifted some number of times to get B.

For example, if A is abcde and B is cdeab, return true. If A is abc and B is acb, return false.