Remove Anagram
Problem Overview
- Given a list of product ID strings, remove any string that is an anagram of an earlier one and return the remaining strings sorted.
- Input: textList of lowercase ASCII strings (1–1000 chars), up to 1000 items; Output: array of strings after removals in sorted order.
- Real-world context: deduplicating Amazon product IDs where character order may vary.
- From Amazon interviews; a common coding interview problem and interview question.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
