leetle

Daily challenge for 2026-07-23

569. Shared Ingredients Count

You are given two lists of strings, list1 and list2, representing ingredients in two different recipes. Return the number of unique ingredients that are present in both recipes.

Example:
Input: list1 = ["tomato", "onion", "garlic"], list2 = ["cheese", "tomato", "garlic"]
Output: 2

Run this challenge interactively in Python or JavaScript when the app loads.