leetle

Daily challenge for 2025-03-02

61. Longest Common Prefix

Write a function solve that finds the longest common prefix among an array of strings.

Example:
Input: ["flower","flow","flight"]
Output: "fl"

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