Daily challenge for 2025-07-13
194. Find Maximum Difference in Array
Write a function solve that takes a list of integers and returns the maximum difference between any two elements (largest minus smallest).
Example:Input: [2, 1, 4, 9, 3]Output: 8
The maximum is 9 and minimum is 1, so the difference is 9 - 1 = 8.
Run this challenge interactively in Python or JavaScript when the app loads.