Intuit Interview Question: Given a string, how do you fi... | Glassdoor

Interview Question

Software Engineer Intern Interview(Student Candidate) San Diego, CA

Given a string, how do you find a list of anagrams from a

  english dictionary (or just the dict file in unix)?

Interview Answer

2 Answers


Anonymous on Oct 31, 2013

Sort the given text. Go thru all the words in dict. If length is same as text, sort the word and check if they equals. If they’re equals add it to the result list.

Anonymous on Mar 8, 2019

Add Answers or Comments

To comment on this, Sign In or Sign Up.