Pregunta de entrevista de Cognizant

Write a Python function to find the minimum number in a given list

Respuesta de la entrevista

Anónimo

9 dic 2024

I provided two solutions: the first utilized Python's built-in min() function, while the second involved iterating through the list with a for loop, updating a variable to track the smallest number whenever a smaller value was encountered.