Find the Largest Number
easyDescription & examples
Return the largest value in a nonempty list of integers. Repeated values do not change the answer.
Examples
numbers = [-8, -2, -11] → -2
numbers = [6, 1, 6] → 6
Constraints
1 ≤ length ≤ 10,000. Each value is an integer between -1,000,000 and 1,000,000.
Guided help
Take one nudge at a time. The full walkthrough opens only after you choose Show Solution.
