Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
V F
Wording: non-decreasing -> Increasing

V F

Nov 24, 2024

Does non-decreasing have a special meaning? Or is it just increasing?

If not, please reword to increasing.

0

0

Comments
Comments
B
bradleyjwinchester a year ago

A list in increasing order means that every element is larger than the previous one.

Non-decreasing is technically the correct term here as the list can contain duplicate elements.

On this page

Problem Statement

Examples

Example 2

Try it yourself