Daily challenge for 2026-10-06
644. Filter Product Shelf Codes
You are organizing an inventory shelf where each product has an alphanumeric code in the string array codes. A code is considered valid if it starts with an uppercase English letter and ends with an even digit ('0', '2', '4', '6', or '8').
Return a list of all valid codes in their original relative order.
Example:
Input: codes = ["A12", "b4", "C9", "K0", "M"]
Output: ["A12", "K0"]
Run this challenge interactively in Python or JavaScript when the app loads.