Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

You are given an array recipes of N recipes, where each recipe is represented by a string indicating the required ingredients. Each character in the recipe string represents one unit of that ingredient. For example, "toast" is made of two 't', one 'o', one 'a', and one 's'. You are also given a string ingredients containing your available ingredients. The task is to determine how many recipes can be prepared using the available ingredients, where each ingredient's supply must be sufficient to meet a recipe's requirement.

Test Cases
Input
Output
Expected