Product SKU Code Validator
Product SKU Code Validator
MediumStrings0% accepted
Priya at Amazon's Pune warehouse processes product codes like 'AMZN-ELECT-TV-32-BLK-2024' to validate them before picking items from shelves.
Approach
Validate SKU format 'VENDOR-DEPT-CAT-SPEC-COLOR-YEAR' ensuring 6 segments, proper lengths, and alphanumeric characters only.
Input
AMZN-ELECT-TV-32-BLK-2024
Output
ELECTRONICS,TV,32,BLK,2024
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards