You can use a sorting algorithm (like bubble sort) to sort the array in ascending order and the smallest integer will be `arr[0]`.
8.4m questions
11.0m answers