Check array sorted (non-decreasing)

Java Easy 6 views
Back to Questions

Problem Description

Task: return true if the array is sorted in non-decreasing order. Compare adjacent elements.

Input Format

Java method

Output Format

Return value

Constraints

Empty or single element is sorted.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next