Skip to content

796-rotate-string

DevGod
DevGod
Vtuber
/**
* @param {string} s
* @param {string} goal
* @return {boolean}
*/
var rotateString = function(s, goal) {
return s.length === goal.length && (s+s).includes(goal);
};