Box Coding & Algorithms Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Solve classic troubleshooting & algorithm tasks
Question System failure troubleshooting: You can only SSH into the machine and the log file is huge. How would you locate the problem quickly? Flip a ...
Design streaming window average processor
Question Design an event processor for an infinite out-of-order event stream (id, timestamp, payload, checksum). Validate checksum, discard events arr...
Compute Top-K word frequencies under a path
Given a filesystem path that may contain nested subdirectories and files, compute the top K most frequent words across all files. Describe an in-memor...
Design out-of-order windowed stream processor
Design an event processor for an unbounded stream where each event has id, timestamp, payload string, and checksum. Events may arrive out of timestamp...
Flip a specific bit in an integer
Given a non-negative integer num and a zero-based bit position p, return the integer resulting from flipping only the bit at position p (i.e., 0 becom...