Frage im Vorstellungsgespräch bei Cognizant

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

Antwort im Vorstellungsgespräch

Anonym

9. Dez. 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.