Kernel: Python 3 (system-wide)
Suppose that a company sells computer chips in packages of size 1, 5, and 8. Find the least number of packages that can be used to order 15 chips.
This problem looks similar to lightbulb problem we did in class. So we use the same algorithm here.
In [1]:
In [3]:
Out[3]:
[0, 1, 2, 3, 4, 1, 2, 3, 1, 2, 2, 3, 4, 2, 3, 3]
3