package leetcode;

/**
 * https://leetcode.com/problems/rank-teams-by-votes/
 */
public class Problem1366 {
    public String rankTeams(String[] votes) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem1366 prob = new Problem1366();
        System.out.println(prob.rankTeams(new String[]{"ABC","ACB","ABC","ACB","ACB"})); // "ABC"
        System.out.println(prob.rankTeams(new String[]{"WXYZ","XYZW"})); // "XWYZ"
        System.out.println(prob.rankTeams(new String[]{"WYXZ","XYZW"})); // "XWYZ"
        System.out.println(prob.rankTeams(new String[]{"ZMNAGUEDSJYLBOPHRQICWFXTVK"})); // "ZMNAGUEDSJYLBOPHRQICWFXTVK"
        System.out.println(prob.rankTeams(new String[]{"BCA","CAB","CBA","ABC","ACB","BAC"})); // "ABC"
        System.out.println(prob.rankTeams(new String[]{"M","M","M","M"})); // "M"
    }
}

@@ -455,32 +455,278 @@
 %22%7D)); // %22XWYZ%22%0A
+        System.out.println(prob.rankTeams(new String%5B%5D%7B%22ABC%22,%22CBA%22%7D)); // %22ABC%22%0A        System.out.println(prob.rankTeams(new String%5B%5D%7B%22ABDC%22,%22CDBA%22%7D)); // %22ACBD%22%0A        System.out.println(prob.rankTeams(new String%5B%5D%7B%22CBDA%22,%22ADBC%22%7D)); // %22ACBD%22%0A
         System.o

Update problem 1366