Dell Technologies interview question

Find the first non-repeating character in a string.

Interview Answer

Anonymous

22 Jun 2019

After white-boarding the entire program with the most efficient runtime, I was asked to run it through multiple examples and explain how it worked. Then, I was asked whether I was satisfied with it. I offered an alternative solution, one that was equally efficient to my initial solution, just to demonstrate that I understood there were alternative ways to answer it and that it was just up to personal preference.