Cognizant Interview Question

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

Interview Answer

Anonymous

Dec 9, 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.