Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Project: Aiuka Narankaev - Fall 2021 MAT1630
Path: Discussions/11.15.ipynb
Views: 25Image: ubuntu2004
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