You are given a list of identifiers, determine the total number of unique identifiers and the number of duplicates.
Explanation: Corrected duplicate count from 4 to 3, since there are 4 unique identifiers and the duplicates are 2 (for identifier 2) and 3 (for identifier 4)
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak