Minimum cost to fill given weight in a bag gfg practice. So yes, it's a function ...