B2.4 Broken Code challenges - Java
B2.4 Broken Code challenges - JavaB2.4.1: Algorithms & Efficiency (Big O)/* Topic B2.4.1: Big O Notation & Efficiency CHALLENGE: This code checks for duplicates. It works, but it is inefficient. It compares every pair of numbers twice! HINT: Look at the inner loop 'int j = 0'. If i is 5, we have already checked indices 0-4 against 5 in previous loops. */ public class Main { public static boolean hasDuplicates(int[]...