Software Engineer • Senior-Level
Software Engineer • Senior-Level
High QualityPrep Other Coding Questions Asked by OpenAI
Continue with targeted prep from OpenAI's coding question bank.
Interview Summary
My technical phone screen covered two questions: a coding problem about overlapping rectangles and a system design prompt about managing electricity demand across a power grid. I found the difficulty moderate and had a positive experience overall.
Interview Details
Coding — Design a Rectangle Board
I was asked to implement a RectangleBoard that could tell me which rectangle was visible at a given cell. The board started empty, with width columns and height rows. Coordinates were zero-indexed: x identified the column and y identified the row. Each rectangle covered every cell from its top-left corner (x1, y1) through its bottom-right corner (x2, y2), including the edges. If several rectangles covered the same cell, the most recently added one that was still active appeared on top.
The class needed to support three operations:
addRectangle(x1, y1, x2, y2)adds a rectangle and returns its
Unlock Full Details
Create a free account to unlock this interview experience report.