Practice Interview Questions
| Question | Status |
|---|---|
Write a Python function that takes a list of integers as input and returns the largest number in the list. Assume the list has at least one element.
Example:
Input: [1, 3, 7, 2, 5]
Output: 7
Input: [-5, -1, -10]
Output: -1
Write a Python function that takes a list of integers as input and returns the largest number in the list. Assume the list has at least one element.
Example:
Input: [1, 3, 7, 2, 5]
Output: 7
Input: [-5, -1, -10]
Output: -1