Fourth Largest Element in the Array
Posted: 19 Jul, 2020
You are given an array consisting of 'N' integers. You have to find the fourth largest element present in the array.
If there is no such number present in the array, then print the minimum value of an integer which is -2147483648.
Try solving this problem in O(N) time complexity.
The first line of input contains the integer 'N' representing the size of the array. The second line of input contains N space-separated integers representing the array elements.
The only output line contains the fourth-largest element if present, otherwise print -2147483648
You are not required to explicitly print the output, it has already been taken care of. Just implement the function.
1 <= N < 10^6 -10^6 <= element <= 10^6 Time Limit: 1 sec
Lexicographic Permutation Rank
Posted: 13 Jul, 2021
Zero Pair Sum
Posted: 22 Jul, 2021
Longest Common Prefix
Posted: 24 Jul, 2021
Implement a Queue
Posted: 27 Jul, 2021
Remove K Corner Elements
Posted: 31 Jul, 2021