Question: You have been given an array A consisting of N integers. All the elements in this array are guaranteed to be unique. You need to

You have been given an array A consisting of N integers. All the elements in this array are guaranteed to be unique. You need to find whether the elements in the array are sorted (either increasing or decreasing order) or not. If the elements are sorted print Elements are sorted! otherwise print Elements are not sorted!!.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!