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)?
Answer

Interview Answer

2 Answers

0

http://courses.cs.washington.edu/courses/cse143/08sp/handouts/23.html

Anonymous on Oct 31, 2013
0

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.