Skip to content
#

recursion

Here are 1,348 public repositories matching this topic...

Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.

  • Updated Jul 18, 2021
  • C++
FazeelUsmani
FazeelUsmani commented Oct 8, 2020

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,

Improve this page

Add a description, image, and links to the recursion topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the recursion topic, visit your repo's landing page and select "manage topics."

Learn more