20%off off — LaunchSpecial
Exercises/#104 Find Maximum in Array
#104

Find Maximum in Array

Easy📦 Arrays
30 XP

Problem

Given an array of integers, return the maximum value without using built-in max functions.

Examples

Input: nums = [3, 1, 4, 1, 5, 9, 2, 6]
Output: 9

Input: nums = [-5, -1, -3]
Output: -1
array
AI Assistant— powered by AI

Unlock hints progressively — start gentle, go deeper only if needed.

💡

Level 1: Gentle Nudge

A subtle direction

🗺️

Level 2: Approach

The algorithm to use

🔍

Level 3: Detailed

Step-by-step guidance

104 / 150

Your Solution

⚡ JavaScript
Loading...

to save progress and use AI features