leetle

Daily challenge for 2026-02-04

400. Find the Longest Word

Given a string s containing words separated by single spaces, return the length of the longest word. If the string is empty or contains no words, return 0.

Example:
Input: s = "the quick brown fox" Output: 5

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