Skip to content

Search anagram words from the given file. Think about large data sets. Write anagram words in one line and keep the insertion order of the given file, write anagram words in one line and sort them lexicographically.

License

oguzcam58/SearchAnagramWords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SearchAnagramWords

Requirements
You are given with a large data set, every line of the file has one word.
You need to read the file and group anagram words, consist of same characters in different order (i.e. except, expect).
You need to keep the insertion order, however, sort the anagram words lexicographically among each other.
If a word has no anagram word in the file, do not write it to the output file.
Focus on maintainability, scalability, performance.
No need for extensive error handling.

GIVEN INPUT
who
how
except
expect
tree
purse

EXPECTED OUTPUT
how who
except expect

About

Search anagram words from the given file. Think about large data sets. Write anagram words in one line and keep the insertion order of the given file, write anagram words in one line and sort them lexicographically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages