Are Characters Unique in a String – Interview Question

Does a string have all unique characters? Let’s find out how to answer this question in a technical interview The first solution that comes to mind is to have two for loops. In the outer for loop, you pick one character from the string, let’s call it c1. You then compare c1 to rest of…
Read more

October 28, 2018 0