```
int findMin(int num[], int n) {
int min = num[0];
for(int i=0; i<n; i++){
if(num[i] < min){
min = num[i];
}
}
return min;
}
I use this simple code to solve this problem, and it's accepted? no time exceed, I don't understand...
```