update 3637 mod solution
Some checks failed
Binary Search Test / test (push) Failing after 6s

This commit is contained in:
2026-02-17 13:00:07 +03:00
parent e8e085e606
commit b841165037

View File

@@ -15,10 +15,9 @@ public class BinarySearch3637 {
a.put(Integer.parseInt(args[i])); a.put(Integer.parseInt(args[i]));
} }
System.out.println( int start = searchIterativeDecreasing(x, a);
searchIterativeIncreasing(x, a.getReversed()) - int end = searchIterativeIncreasing(x, a.getReversed());
searchIterativeDecreasing(x, a) System.out.println(((end - start) == -1) ? 0 : (end - start));
);
} }
static int searchIterativeIncreasing(int x, IntList a) { static int searchIterativeIncreasing(int x, IntList a) {