205. Potion Shop — Can I Afford It?

Easy · Array

A potion shop sells potions at various prices. Given your `gold` coins and a list of `prices`, return a list of booleans: True if you can afford that item, False if not.

Examples

Example 1
Input: gold=50, prices=[30, 60, 45, 100]
Output: [True, False, True, False]
Explanation: Can afford 30 and 45

Constraints