Finding duplicate characters inside string.

In my last post

I wrote about finding duplicates inside an array of integers. What if input is a string instead of integers? Could we solve the problem in same way we did before?

String is essentially an array of characters so we still could use HashTable/ Set like before to store chars instead this time.

Although algorithm wise we didn’t learn new anything but now we know that strings are essentially an array of chars and we could utilize that fact going forward in string related problems.

Similar Problems-:

dev.to is where software developers stay in the loop and avoid career stagnation. Signing up (for free!) is the first step.

Classic DEV Post from Apr 5

Originally published at dev.to.

Learner, Philomath. Engineer by choice, humorous by nature. Big fan of technology.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store