<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2682781734368178743.post4330600788851858262..comments</id><updated>2010-08-22T22:35:33.477-07:00</updated><category term='puzzles'/><category term='Questions-List'/><category term='String Manipulation'/><category term='Dynamic Programming'/><category term='Linked List'/><category term='Array'/><category term='Microsoft'/><category term='Databases'/><category term='Data Structures'/><category term='MySpace'/><category term='Tree'/><category term='.NET/C#'/><title type='text'>Comments on Technical Interview Questions: String: Find First Non-Repeated Character</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.technicalinterviewquestions.net/feeds/4330600788851858262/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/4330600788851858262/comments/default'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/find-first-nonrepeated-character-string.html'/><author><name>avid gardener</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-1049078107530562705</id><published>2010-08-22T22:35:33.477-07:00</published><updated>2010-08-22T22:35:33.477-07:00</updated><title type='text'>The actual and correct answer for the input string...</title><summary type='text'>The actual and correct answer for the input string &amp;quot;Bumblebee&amp;quot; would be &amp;#39;B&amp;#39;. As &amp;#39;B&amp;#39; and &amp;#39;b&amp;#39; are different. The program correctly return &amp;#39;B&amp;#39;. In the case when the input string is &amp;quot;bumblebee&amp;quot; the above program correctly return &amp;#39;u&amp;#39;. The program is correct because once the hash table is built we loop over the characters of the original </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/4330600788851858262/comments/default/1049078107530562705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/4330600788851858262/comments/default/1049078107530562705'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/find-first-nonrepeated-character-string.html?showComment=1282541733477#c1049078107530562705' title=''/><author><name>avid gardener</name><uri>http://www.blogger.com/profile/08838915050477665426</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.technicalinterviewquestions.net/2008/12/find-first-nonrepeated-character-string.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-4330600788851858262' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/4330600788851858262' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1688458652'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-2004134951851689070</id><published>2010-08-22T16:08:18.259-07:00</published><updated>2010-08-22T16:08:18.259-07:00</updated><title type='text'>This is not sufficient. It finds the first ascii c...</title><summary type='text'>This is not sufficient. It finds the first ascii character that has a count of one but it does not find the first character in a string that has a count of one.&lt;br /&gt;&lt;br /&gt;Say your string is: Bumblebee&lt;br /&gt;Your answer would return &amp;quot;l&amp;quot; (because you are assuming the order of ascii characters) but the correct answer should be &amp;quot;u&amp;quot;. You could search the hash table for each entry </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/4330600788851858262/comments/default/2004134951851689070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/4330600788851858262/comments/default/2004134951851689070'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/find-first-nonrepeated-character-string.html?showComment=1282518498259#c2004134951851689070' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.technicalinterviewquestions.net/2008/12/find-first-nonrepeated-character-string.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-4330600788851858262' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/4330600788851858262' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1418622579'/></entry></feed>
