×

# Check if array is in ascending order

Given an array of integers values. Write an efficient program (algorithm) to find given array is ascending order (sorted form).

Example

Suppose array contain following nodes. view input and accepted output.

Explanation

Program for check given array in ascending order. Time complexity O(n).

**Output**

View process.

Submit your solution in comment section.

#### Recommended Posts:

- Dynamic allocation of array in c
- Find second smallest number in array
- Count occurrence of duplicate element
- Evaluate Given postfix expression using stack
- Delete occurrences of given key in a linked list
- Remove half nodes from end of linked list
- Reverse second half of linked list
- Delete linked list nodes there not contain zig-zag views
- Top view of binary tree without hashing

View comments and participate Discussion