← ALL NOTES
Array

3494. Find the Minimum Amount of Time to Brew Potions

n wizards with speed skill[i] and m potions with power mana[j]. Potion j passes through the wizards in order; wizard i brews it in time mana[j]·skill[i]. Potions go in order, the pipeline is…

Loading…