Count Ways to Select a Two/Four-Wheel Fleet

Asked at Amazon · Coding Questions · Difficulty: Easy

For each total in `wheels`, count the number of ways to pick non-negative counts of two-wheelers and four-wheelers so their wheels sum exactly to that total (unlimited supply). Return the list of counts.

Loading the problem…