Interview Question

Interview(Student Candidate) Los Angeles, CA

How do you find the combinations for abc in given inputs of

  strings. Like acb,bca,cab etc.

Interview Answer

1 Answer


I said I will put all the strings in hash table followed by hash function of SUM(Ascii values). Then discussion went on what happens if same ascii values for the different sets. Tried all possible ways. Finally couldn't answer

Interview Candidate on Oct 17, 2010

Add Answers or Comments

To comment on this, Sign In or Sign Up.