Skip to content

Commit

Permalink
Added easy programming challenge with specifications and examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
codez-bot[bot] authored Aug 19, 2023
1 parent e424fd7 commit 24d879a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions programming_interview/easy_challenge.md
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.

0 comments on commit 24d879a

Please sign in to comment.