Daily challenge for 2025-01-08
8. Two Sum
Write a function solve that finds two numbers in a list that add up to a target value. Return a list with their indices in order. If the target cannot be made, return an empty list.
Example:Input: [2, 7, 11, 15], target=9Output: [0, 1]
Run this challenge interactively in Python or JavaScript when the app loads.