Given a sorted array of empty box sizes in ascending order and a target product size, find the smallest box size that fits the product (box size >= product size), or return -1 if no such box exists.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.