Netflix: No repeated show in any row or column of the first home screen
Problem. Think of the home page as a grid of rows of shows. Only part of it is visible on the first screen (the viewport). Work out how to make sure that, within that first screen, no show appears twice in the same row or in the same column.
How it was framed. This was the second of two phone screens for a software engineer role. The candidate said it was less about writing code and more of a problem-solving conversation, so clarifying the shape of the grid, what counts as visible and what to do when a duplicate is found is part of the work.
What mattered. Communication: explaining the reasoning out loud and steering toward a sensible approach. The candidate admitted they did not always land on the best answer first and sometimes only spotted a gap after the interviewer pointed it out. The first phone screen was a variant of the longest substring without repeats, reworded around show names with a few changed requirements.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.