Quick Overview

Return the k-th largest value in an unsorted integer array, counting duplicates separately, without using a heap or priority queue, and aim for the best achievable time complexity. The coding question tests selection faster than sorting, handling of repeated values, and performance on adversarial inputs.

Select the K-th Largest Value from an Unsorted Array Without a Heap

Company: ByteDance

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Return the k-th largest value in an unsorted integer array, counting duplicates separately, without using a heap or priority queue, and aim for the best achievable time complexity. The coding question tests selection faster than sorting, handling of repeated values, and performance on adversarial inputs.

Select the K-th Largest Value from an Unsorted Array Without a Heap

ByteDance • Software Engineer

Loading…