[Draft genome of the wheat A-genome progenitor Triticum urartu](https://www.researchgate.net/publication/236087064_Draft_genome_of_the_wheat_A-genome_progenitor_Triticum_urartu)
11维的韦恩图
代码
判断一个数组是否是没有重复的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
public static void main(String[] args) { String[] fruit = new String[] {"apple", "banana", "orange", "watermelon", "apple"}; System.out.println(unique(fruit)); }
private static boolean unique(String[] fruit) { Set<String> st = new HashSet<>(); boolean flag = false; for (String f : fruit) { if (st.contains(f)) { flag = false; break; } else { st.add(f); flag = true; } } return flag; }
1 2 3 4 5 6 7 8 9
public static void main(String[] args) { String[] fruit = new String[] {"apple", "banana", "orange", "watermelon"}; System.out.println(unique(fruit)); }
private static boolean unique(String[] fruit) { Set<String> st = new HashSet<>(Arrays.asList(fruit)); return st.size() == fruit.length; }