← Problem library

Functions · Python

Find the Maximum

EasyFunctionsUnsolved

Problem

Return the largest integer in nums without using max().

Example input

nums = [3, 9, 2, 7]

Example output

9

Constraints

1 <= len(nums) <= 1000

Python workspace

Reset code

Execution uses a timed child process in a temporary directory. It is development-only isolation, not a production sandbox.