Arreglar para acepta el reto
This commit is contained in:
1 parent
1b14dd3070
commit
4070327d70
2 files changed
+24
-21
No files matched your search
@@ -3,7 +3,6 @@ import java.util.*;
|
||||
public class P260_AlanSmithee {
|
||||
public static void main(String[] args) {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
System.out.println("Cuantos casos de prueba?");
|
||||
int casos = sc.nextInt();
|
||||
sc.nextLine();
|
||||
|
||||
@@ -18,9 +17,10 @@ public class P260_AlanSmithee {
|
||||
}
|
||||
}
|
||||
|
||||
private static int vistos[] = new int[(int) ('z') - (int) ('a') + 1];
|
||||
|
||||
private static boolean isAnagram(String s1, String s2) {
|
||||
// (int) ('z') - (int) ('a') + 1 == 27
|
||||
int vistos[] = new int[27];
|
||||
|
||||
for (int j = 0; j < s1.length(); j++){
|
||||
char c = s1.charAt(j);
|
||||
if(!Character.isLowerCase(c)) continue;
|
||||
|
||||
Reference in new issue
Block a user