##
Noble integers in an array (count of greater elements is equal to value)
April 14, 2017

Given an array arr[], find a Noble integer in it. An integer x is said to be Noble in arr[] if the number of integers greater than x are equal to x. If there are many Noble integers, return any of them. If there is no, then return -1. Examples: Input : [7, 3, 16,… Read More »