Given an array of integers, return the maximum value without using built-in max functions.
Input: nums = [3, 1, 4, 1, 5, 9, 2, 6] Output: 9 Input: nums = [-5, -1, -3] Output: -1
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
to save progress and use AI features