Problem 2300 · Medium
Sort the potions, then binary search for the weakest potion that makes each spell successful.
Open the interactive visualisation