← Samsung questions

Find N smallest numbers in a 1 TB file

Filed under Samsung

You are given a massive 1 TB file containing integers. Find the N smallest numbers in the file. Assume N is small enough to fit in memory (e.g., N = 10^6), but the total count of numbers in the file…

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 Samsung questions

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