Pergunta de entrevista da empresa Intel Corporation

You have an array of integers. How would you find the maximum value?

Resposta da entrevista

Sigiloso

14 de ago. de 2025

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