HomeJobsPracticeCommunityMore
easy · Function challenge

Deduplicate skills

Return the skills in their original order, removing later duplicates case-insensitively. Preserve the spelling of the first occurrence.

Examples

Input: ["React", "TypeScript", "react", "Python"]
Output: ["React", "TypeScript", "Python"]
Input: ["SQL", "sql", "Sql"]
Output: ["SQL"]
Daily execution allowance
5/5 executions remaining · 2 scored submissions per problem
Solution