Dan has more than 22 years of software design, development, and architecture experience. He is also a husband, father, carpenter, and runs obstacle races like Tough Mudder.
One that I got a long time ago was design an algorithm to sort a list of words by anagram - so the words 'cat' and 'act' would appear together.
When I got the generic 'sort list of words' question previously, I said I would send to the language's 'sort' command - any developer of mine that thought they were smarter than a tried-and-true honed api wouldn't be hired, or would be a risk of being fired if I found it in a code review. My rationalization allowed it to be a correct answer.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One that I got a long time ago was design an algorithm to sort a list of words by anagram - so the words 'cat' and 'act' would appear together.
When I got the generic 'sort list of words' question previously, I said I would send to the language's 'sort' command - any developer of mine that thought they were smarter than a tried-and-true honed api wouldn't be hired, or would be a risk of being fired if I found it in a code review. My rationalization allowed it to be a correct answer.