Min-Max
Practice
3.4 (181 votes)
Basic programming
Easy
Problem
91% Success 68880 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
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:10
79 votes
Tags:
Basic Programming
Points:10
45 votes
Tags:
Basic ProgrammingBasics of ImplementationData Types and Array handlingEasyImplementation
Points:10
41 votes
Tags:
AlgorithmsSortingString Manipulation
Editorial
No editorial available for this problem.