Aldair47x / test-funWithAnagrams

This is a test from HackerRank

Home Page:https://www.hackerrank.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

♛ Fun with Anagrams ♛

Problem Statement

Two strings are anagrams if they are permutations of each other. For example, “aaagmnrs” is an anagram of “anagrams”. Given an array of strings, remove each string that is an anagram of an earlier string, then return the remaining array in sorted order.

For example, given the strings s = ['code', 'doce', 'ecod', 'framer', 'frame'], the strings 'doce' and 'ecod' are both anagrams of 'code' so they are removed from the list. The words 'frame' and 'framer' are not anagrams due to the extra 'r' in 'framer', so they remain. The final list of strings in alphabetical order is ['code', 'frame', 'framer'].


Authors

Follow me! – aldair47x@Twitteraldair47x@gmail.com

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

This is a test from HackerRank

https://www.hackerrank.com/

License:MIT License


Languages

Language:JavaScript 100.0%