leetle

Daily challenge for 2025-09-10

253. Monotonic Array

Write a function solve that returns true if the array nums is monotonic (entirely non-increasing or entirely non-decreasing).

Example:
Input: nums = [1,2,2,3]
Output: true

Run this challenge interactively in Python or JavaScript when the app loads.