Skip to content

Tag Archives: Order-Statistics

Given a Binary Search Tree (BST) and a positive integer k, find the k’th largest element in the Binary Search Tree. For example, in the following… Read More
We recommend reading the following posts as a prerequisite for this post.K’th Smallest/Largest Element in Unsorted Array | Set 1 K’th Smallest/Largest Element in Unsorted Array… Read More
We recommend reading the following post as a prerequisite of this post. K’th Smallest/Largest Element in Unsorted Array | Set 1 Given an array and… Read More
Given an array and a number k where k is smaller than the size of the array, we need to find the k’th largest element… Read More
Given an array and a number K where K is smaller than the size of the array. Find the K’th smallest element in the given… Read More
Given an array arr of size N, the task is to find the largest element in the given array.  Example:  Input: arr[] = {10, 20,… Read More
Given an n x n matrix, where every row and column is sorted in non-decreasing order. Find the kth smallest element in the given 2D… Read More
Given the root of a binary search tree and K as input, find Kth smallest element in BST. For example, in the following BST, if k… Read More
  Write an efficient program for printing k largest elements in an array. Elements in an array can be in any order.For example: if the… Read More

Start Your Coding Journey Now!