796. Rotate String
# Easy
Solution:
A is original, B is new.
Find all possible start letter position of B corresponded to A.
Then continue comparing following letters bettween A and B.
Consider two edge cases: two strings are empty; two strings contain same letter but different lenght.h
Last updated
Was this helpful?