How to find first recurring character in given String? [Solved] [Google Interview Coding Problem]

Hello guys, while surfing the Internet for a couple of weeks back, I come to know that this problem was asked on Google interviews, find the first recurring character in a given String. I don't know if that's true but this looks like a very simple coding problem from Google's Interview standard. If it was indeed asked, then that guy must have been very lucky. Anyway, I liked this coding problem and thought to write about it, becuase it's a good coding problem to check candidates' data structure and algorithms skills because it's tricky. It's tricky because it's very easy to make a mistake assuming just one recurring character in String, which you should avoid.

تعليقات

المشاركات الشائعة من هذه المدونة

10 points about Java Heap Space or Java Heap Memory

How HashMap works in Java

10 examples of displaytag in JSP, Struts and Spring