InterviewDB
Question
·
Los Angeles
Rectangle Fitting Tracker - Geometry Coding Interview
Question Details
Problem Design a RectangleFitter that tracks a set of axis-aligned rectangles and answers fitting queries. Example: Follow-ups For fits_in with n rectangles and q queries, can you preprocess to answer each query in sub-O(n) time? What 2D data structure (e.g., fractional cascading, 2D segment tree) could help here? Extend to rotatable rectangles: a rect (w, h) fits if (w<=W and h<=H) or (h<=W and w<=H).
Full Details
🔒
Unlock all Codesignal questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a codesignal interview.
It covers the following topics: Coding, General Coding Assessment, Q4 .
Topics
More Codesignal Interview Questions
InterviewDB
AI-Assisted Code Review Assessment - Coding Interview
InterviewDB
Array Mutation Operations - Coding Interview
InterviewDB
Array Triplets with Pythagorean Property - Coding Interview
InterviewDB
Banking System Simulation - Industry Coding Framework Interview
InterviewDB
Bubble Popping Game Simulation - Coding Interview