โ† Visa questions
CodingReported in a candidate post, Sep 2025

Find the kth min/max element using a heap

Filed under Visa

Given an integer array and an integer k, find the kth smallest or largest element in the array using a heap data structure.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Visa questions

Collected from public candidate posts and coding forums. Updated Nov 2026.