← Questions

Most frequent IP addresses in a file too big for memory

0
GoogleCodingLast asked Jun 2026

A log file of IP addresses is far larger than memory. Find the most frequent address, then the top K. Explain how you split the work into pieces that fit in memory, count each piece, and combine the results correctly.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding