CodingReported in a candidate post, Jul 2025
Sort apples based on color and weight criteria
Filed under Cadence
The question
Given an Apple class with weight and color properties, sort a collection of apples based on specific prioritization: Red Good apples (heavy to light), Green apples (heavy to light), and Bad apples (heavy to light).
No write-up yet. Related questions below have one.
Related Cadence questions
Collected from public candidate posts and coding forums. Updated Nov 2026.