Find the Minimum Amount of Time to Brew Potions at Meta
Medium62.7% acceptance
This problem has 12.5% frequency at Meta.
Problem Description
You are given two integer arrays, `skill` and `mana`, of length `n` and `m`, respectively. In a laboratory, `n` wizards must brew `m` potions _in order_. Each potion has a mana capacity `mana[j]` and **must** pass through **all** the wizards sequentially to be brewed properly. The time taken by the...
Read full problem and hintsTopics
Also asked at 5 companies
More Meta Questions
Kth Largest Element in an ArrayMediumTwo SumEasyMerge IntervalsMediumMerge Sorted ArrayEasyFind Peak ElementMedium
View all Meta questions