Sort Products by Aisle and Frozen Status

Given product records, each in the format:

SKU_ID|AISLE_NUMBER|IS_FROZEN

where:

  • SKU_ID is a non-empty string;
  • AISLE_NUMBER is a non-negative integer;
  • IS_FROZEN is true or ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: