-
Updated
Oct 1, 2020 - C++
coding-ninjas
Here are 16 public repositories matching this topic...
-
Updated
Oct 27, 2020 - Java
-
Updated
Oct 21, 2020 - Java
-
Updated
May 23, 2020 - Java
-
Updated
Oct 17, 2020 - C++
-
Updated
Aug 2, 2020 - Jupyter Notebook
-
Updated
Oct 25, 2020 - Jupyter Notebook
-
Updated
Oct 12, 2020 - Java
-
Updated
Sep 26, 2020 - Java
-
Updated
Oct 6, 2020
-
Updated
Sep 10, 2020 - Java
-
Updated
Oct 27, 2020 - Java
-
Updated
Jul 16, 2020 - C++
-
Updated
Aug 8, 2020 - Python
-
Updated
Oct 9, 2020 - C++
Improve this page
Add a description, image, and links to the coding-ninjas topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the coding-ninjas topic, visit your repo's landing page and select "manage topics."
Given an array A of random integers and an integer k, find and return the kth largest element in the array.
Try to do this question in less than O(nlogn) time.
Input Format :
Line 1 : An integer N i.e. size of the array
Line 2 : N integers which are elements of the array, separated by spaces
Line 3 : An integer k
Output Format :
kth largest element
Input Constraints :
1 <= N, Ai,