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.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected