Quick Overview

Return the k largest integers in deterministic descending order while preserving duplicates and avoiding a full-array sort when k is much smaller than the input.

Return the K Largest Integers

Company: J.P. Morgan

Role: Software Engineer II

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Return the k largest integers in deterministic descending order while preserving duplicates and avoiding a full-array sort when k is much smaller than the input.

Read the full J.P. Morgan Software Engineer II interview experience this question came from

Loading…