@@ -0,0 +1,747 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/rotate-string/%0A */%0Apublic class Problem796 %7B%0A    public boolean rotateString(String A, String B) %7B%0A        for (int x = 0; x %3C B.length(); x++) %7B%0A            if (B.charAt(x) == A.charAt(0)) %7B%0A                boolean found = true;%0A                for (int i = 0, j = x; i %3C A.length(); i++, j++) %7B%0A                    if (j == B.length()) %7B%0A                        j = 0;%0A                    %7D%0A                    if (A.charAt(i) != B.charAt(j)) %7B%0A                        found = false;%0A                        break;%0A                    %7D%0A                %7D%0A                if (found) %7B%0A                    return true;%0A                %7D%0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%7D%0A

Solve problem 796