leetle

Daily challenge for 2026-05-05

490. Alternating Character Case Shift

Given a string, return a new string where every character at an even index is converted to uppercase and every character at an odd index is converted to lowercase. The input string will only contain alphabetic characters. Example: Input: "hello" Output: "HeLlO"

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