Amazon Interview Question: Group input strings by permut... | Glassdoor

Interview Question

Software Development Engineer Intern Interview Seattle, WA

Group input strings by permutations and output as a set

 . For example, if your input is: "abc, acb, bce, dce, cde" then your output is: "(abc, acb) (bce) (dce, cde)". Assume all input strings are of the same size. Didn't actually have to write the code for this one, but rather gave an in-depth step-by-step explanation using data structures and time and space complexity.

Add Answers or Comments

To comment on this, Sign In or Sign Up.