← ALL NOTES
Array

2300. Successful Pairs of Spells and Potions

Given spells and potions (strengths) and a threshold success: a pair (spell i, potion j) is successful if spells[i]·potions[j] ≥ success. For each spell, count the successful potions. Sort potions,…

Loading…