-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added easy programming challenge with specifications and examples.
- Loading branch information
1 parent
e424fd7
commit 24d879a
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Easy Programming Challenge | ||
|
||
## Problem Statement | ||
Write a function `find_max` that takes a list of integers and returns the maximum value in the list. | ||
|
||
## Input/Output Specifications | ||
- Input: | ||
- A list of integers `nums` (1 <= len(nums) <= 10^5) where -10^4 <= nums[i] <= 10^4. | ||
- Output: | ||
- An integer representing the maximum value in the list. | ||
|
||
## Examples | ||
- Input: [1, 2, 3, 4, 5] | ||
Output: 5 | ||
|
||
- Input: [-5, -4, -3, -2, -1] | ||
Output: -1 | ||
|
||
## Constraints | ||
- The list will have at least one integer. | ||
- Do not use built-in functions to find the maximum value. |