Order Layout
Problem Overview
- Validate a backend configuration string for a barcode scanner and output configurations in the correct order.
- Input: pipe-separated entries of a four-digit index plus a value. Output: ordered list of values, or ["Invalid configuration"] if checks fail.
- Validate '|' separation, sequential and unique indices without gaps, alphanumeric values, and no duplicate indices.
- Real-world: scanner setup in retail/logistics; from Amazon interviews; a coding interview problem and interview question.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
