Array | Order Statistics

Last Updated : 26 Sep, 2023

What is Order Statistics?

The ith order statistics is defined as the value that comes in the ith position of the N element sequence when the sequence is sorted in increasing order.

In simple terms, the order statistics is the ith smallest element in the given array. Below are a few examples to understand the order statistics:

  • Minimum = Order statistics 1
  • 2nd minimum = Order statistics 2
  • Median = Order statistics floor((N+1)/2)
  • 2nd Maximum = Order Statistics N-1
  • Maximum = Order statistics N

Some practice problems in Order Statistics:

Quick Links :


Share your thoughts in the comments