โ† Danske IT questions

Count fruit occurrences and sort by length

Filed under Danske IT

The question

Given a list of fruits, count occurrences. If counts are equal, print the fruit with the shorter length first.

No write-up yet. Related questions below have one.

Related Danske IT questions

Collected from public candidate posts and coding forums. Updated Nov 2026.