Search⌘ K
AI Features

Kth Smallest Prime Fraction

Kth Smallest Prime Fraction uses a sorted array containing one and prime numbers. Form fractions from earlier values over later ones and return the numerator and denominator of the kth smallest.

Statement

You are given a sorted array of unique integers, arr, which includes the number 11 and other prime numbers. You are also given an integer kk.

For every index ii and jj where 0≤i<j<0 \leq i < j < ...