CodingReported in a candidate post, Sep 2018
Distinct Flowers
Filed under Shell
The question
Given a list of N flowers, find how many distinct types of flowers are present among the first K selected flowers.
No write-up yet. Related questions below have one.
Related Shell questions
Collected from public candidate posts and coding forums. Updated Nov 2026.