mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
* reduce code
* add function overriding * update test
This commit is contained in:
@@ -5,7 +5,7 @@ public class FindMin {
|
||||
//Driver
|
||||
public static void main(String[] args) {
|
||||
int[] array = {2, 4, 9, 7, 19, 94, 5};
|
||||
System.out.println("min = " + findMin(array));
|
||||
assert findMin(array) == 2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user