Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Slippers Selling by kazuki.h
from collections import Counter
def calc_selling(inventory, orders):
orderdict = Counter(orders)
return sum(min(inv, orderdict[idx+1]) for idx, inv in enumerate(inventory))
Sept. 2, 2025
Comments: