Code cleanup (#4246)

This commit is contained in:
HManiac74
2023-07-22 17:23:00 +02:00
committed by GitHub
parent 3facb0d862
commit 2488a2ad51
52 changed files with 50 additions and 167 deletions

View File

@ -21,6 +21,7 @@ public class Sort012D {
a[i] = np.nextInt();
}
sort012(a);
np.close();
}
public static void sort012(int[] a) {

View File

@ -49,5 +49,6 @@ class Sparcity {
}
}
System.out.println("Sparcity of matrix is: " + sparcity(mat));
in.close();
}
}

View File

@ -19,6 +19,7 @@ public class ThreeSumProblem {
System.out.println("Brute Force Approach\n" + (th.BruteForce(arr, ts)) + "\n");
System.out.println("Two Pointer Approach\n" + (th.TwoPointer(arr, ts)) + "\n");
System.out.println("Hashmap Approach\n" + (th.Hashmap(arr, ts)));
scan.close();
}
public List<List<Integer>> BruteForce(int[] nums, int target) {