leetle

Daily challenge for 2025-06-27

178. Find Common Elements in Three Arrays

Write a function solve that finds all elements that appear in all three sorted arrays. Return them in ascending order.

Example:
Input: arr1 = [1, 2, 3, 4, 5], arr2 = [1, 2, 5, 7, 9], arr3 = [1, 3, 4, 5, 8]
Output: [1, 5]

Example 2:
Input: arr1 = [1, 2, 3], arr2 = [4, 5, 6], arr3 = [7, 8, 9]
Output: []

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