Halloween Sale
Unlock all premium questions for over 30% off
Minimum Board Length for Holes
Medium
Question
An old table has n holes in its surface, and the integer array arr lists where each hole sits. Every hole must end up under one of exactly two boards. Both boards are cut to one shared length, a positive integer. When a board of length L has its left end at X, its reach is [X, X + L]: holes at X, at X + L and anywhere between are hidden.
...
More Meta interview questions
- Split Array with Equal Totalseasy
- Word Pattern Matchingeasy
- Phone Keypad Letter Combinationmedium
- Find Shortest Distinct Prefixmedium
- Build Longest Concatenated Palindromehard
- Minimum Coins to Cover All Amountsmedium
- Find Median In Large Unsorted Arraymedium
- Merge Two Sorted Interval Listsmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.