Add Task 6 sorter, fix method signatures, generate solution PDF

This commit is contained in:
2026-04-08 20:27:43 +02:00
parent cd51025dc4
commit a958ba600f
7 changed files with 185 additions and 3 deletions

View File

@@ -30,8 +30,8 @@ public class NumberGuesser {
while (low <= high) {
int mid = low + (high - low) / 2;
System.out.println("Guess: " + mid);
if (mid == number) {
System.out.println("Found the number: " + mid);
return;
} else if (isBigger(mid)) {
low = mid + 1;