← Morgan Stanley questions
CodingMedium

Non-Decreasing Array

Filed under Morgan Stanley

Given an array of integers nums, determine whether it could become non-decreasing by modifying at most one element. An array is non-decreasing if nums[i] <= nums[i + 1] holds for every i (0-indexed)…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Morgan Stanley questions

Collected from public candidate posts and coding forums. Updated Nov 2026.