package leetcode;

/**
 * https://leetcode.com/problems/buddy-strings/
 */
public class Problem859 {
    public boolean buddyStrings(String A, String B) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem859 prob = new Problem859();
    }
}

@@ -282,16 +282,434 @@
 m859();%0A
+        System.out.println(prob.buddyStrings(%22ab%22, %22ba%22)); // true%0A        System.out.println(prob.buddyStrings(%22ab%22, %22ab%22)); // false%0A        System.out.println(prob.buddyStrings(%22aa%22, %22aa%22)); // true%0A        System.out.println(prob.buddyStrings(%22aaaaaaabc%22, %22aaaaaaacb%22)); // true%0A        System.out.println(prob.buddyStrings(%22%22, %22aa%22)); // false%0A        System.out.println(prob.buddyStrings(%22abc%22, %22cba%22)); // true%0A
     %7D%0A%7D%0A

Update problem 859