You have an array of integers. How would you find the maximum value?
Sigiloso
Iterate through the array, keep track of the largest value found so far, and update it whenever a larger number is encountered. Example in Python: max_val = arr[0] for num in arr: if num > max_val: max_val = num