Given two arrays representing stick lengths and their quantities, form rectangles using the available sticks to maximize the sum of their perimeters. Each stick can be used at most once as a side.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.