Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 285 Bytes

File metadata and controls

3 lines (2 loc) · 285 Bytes

Question

You are building a diving board by placing a bunch of planks of wood end-to-end. There are two types of planks, one of length shorter and one of length longer. You must use exactly K planks of wood. Write a method to generate all possible lengths for the diving board.