1 2 3 4 5 6
| assertEquals(3, test.solution("CBD", new String[] {"BACDE", "CBADF", "AECB", "BDA", "ASF", "BDF","CEFD"})); assertEquals(4, test.solution("C", new String[] {"BACDE", "CBADF", "AECB", "BDA"})); assertEquals(2, test.solution("CBD", new String[] {"C", "D", "CB", "BDA"})); assertEquals(2, test.solution("AC", new String[] {"ABC", "CA", "ATEW", "SFCQTA"})); assertEquals(2, test.solution("ACHQ", new String[] {"TWER", "FGCHQEA", "ATEW", "SFCQTA"})); assertEquals(4, test.solution("CBDK", new String[] {"CB", "CXYB", "BD", "AECD", "ABC", "AEX", "CDB", "CBKD", "IJCB", "LMDK"}));
|