Daily challenge for 2026-07-18
564. Count Valid Flight Codes
Given an array of strings representing flight codes, return the number of valid flight codes. A flight code is valid if it is exactly 5 characters long, where the first 2 characters are uppercase English letters and the last 3 characters are digits (0-9).
Example:
Input: codes = ["AA123", "ab123", "B12", "DL901"]
Output: 2
Explanation: Only "AA123" and "DL901" are valid flight codes.
Run this challenge interactively in Python or JavaScript when the app loads.