Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 229 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 229 Bytes

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.