Domanda di colloquio di Cognizant

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

Risposta di colloquio

Anonimo

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.