Min-Max
Practice
3.4 (181 votes)
Basic programming
Easy
Problem
91% Success 68865 Attempts 10 Points 1s Time Limit 256MB Memory 1024 KB Max Code
Given an array of integers . Check if all the numbers between minimum and maximum number in array exist's within the array .
Print 'YES' if numbers exist otherwise print 'NO'(without quotes).
Input:
Integer N denoting size of array
Next line contains N space separated integers denoting elements in array
Output:
Output your answer
Constraints:
1<= N <= 1000
1<= a[i] <= 100
Submissions
Please login to view your submissions
Similar Problems
Points:10
27 votes
Tags:
Basic Programming
Points:10
81 votes
Tags:
Basic ProgrammingBasics of ImplementationEasyImplementation
Points:10
65 votes
Tags:
Basic Programming
Editorial
No editorial available for this problem.