use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class Ex19 method main.
public static void main(String[] args) {
String[] a = new In().readAllStrings();
System.out.println(count(a));
}
use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class Ex20 method main.
public static void main(String[] args) {
String[] a = new In().readAllStrings();
int[] perm = sort(a);
for (int i = 0; i < perm.length; i++) {
System.out.print(perm[i] + " ");
}
System.out.println();
}
use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class Ex05 method main.
public static void main(String[] args) {
String[] a = new In().readAllStrings();
sort(a);
show(a);
}
use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class ThreeSum method main.
public static void main(String[] args) {
int[] a = new In(args[0]).readAllInts();
StdOut.println(count(a));
}
use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class TwoSumFast method main.
public static void main(String[] args) {
int[] a = new In(args[0]).readAllInts();
StdOut.println(count(a));
}
Aggregations