← FactSet questions

Remove anagrams and sort lexicographically

Filed under FactSet

Given an array of strings, remove any string that is an anagram of a previously encountered string, then sort the remaining strings lexicographically.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related FactSet questions

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