<?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.post8426659995757249102..comments</id><updated>2012-02-08T23:46:09.449-08: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, Answers, and Tips: Array: Find the number with odd number of occurren...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.technicalinterviewquestions.net/feeds/8426659995757249102/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/integer-array-odd-even-occurrences-find.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>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-8372750995053055482</id><published>2012-02-04T11:30:12.426-08:00</published><updated>2012-02-04T11:30:12.426-08:00</updated><title type='text'>When I was trying to solve this myself (without th...</title><summary type='text'>When I was trying to solve this myself (without thinking of the XOR method), I came up with a way that should work for that as well as non-numerical elements, while retaining the O(n) time and space complexity.&lt;br /&gt;&lt;br /&gt;Create an initially empty hash table.  Go through the list of objects (number, in this case) one at a time, and add each item to that hash table; as long as when adding to a </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/8372750995053055482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/8372750995053055482'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/integer-array-odd-even-occurrences-find.html?showComment=1328383812426#c8372750995053055482' title=''/><link rel='related' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/8194665087736057802'/><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/2009/01/integer-array-odd-even-occurrences-find.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-8426659995757249102' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/8426659995757249102' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-412071676'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-2668509510878853012</id><published>2011-10-02T06:16:45.335-07:00</published><updated>2011-10-02T06:16:45.335-07:00</updated><title type='text'>awesome method... thanx for posting</title><summary type='text'>awesome method... thanx for posting</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/2668509510878853012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/2668509510878853012'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/integer-array-odd-even-occurrences-find.html?showComment=1317561405335#c2668509510878853012' title=''/><author><name>katti</name><uri>http://www.blogger.com/profile/03090564964490315749</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/2009/01/integer-array-odd-even-occurrences-find.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-8426659995757249102' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/8426659995757249102' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2138638537'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-898415195065742074</id><published>2011-09-07T12:02:06.419-07:00</published><updated>2011-09-07T12:02:06.419-07:00</updated><title type='text'>what if the problem is to find odd in array with a...</title><summary type='text'>what if the problem is to find odd in array with all even occurrences except one ?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/898415195065742074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/898415195065742074'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/integer-array-odd-even-occurrences-find.html?showComment=1315422126419#c898415195065742074' 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/2009/01/integer-array-odd-even-occurrences-find.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-8426659995757249102' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/8426659995757249102' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-524241907'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-8194665087736057802</id><published>2011-03-24T11:13:03.999-07:00</published><updated>2011-03-24T11:13:03.999-07:00</updated><title type='text'>Then the question becomes how do you deal with exc...</title><summary type='text'>Then the question becomes how do you deal with exceptions, such as your given an array for this method but it has 2 or more numbers that appear an odd amount of times... is it possible to create another array containing the entire exclusion set from XOR? I thought i would through that out there. Going to check on it myself...</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/8194665087736057802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/8194665087736057802'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/integer-array-odd-even-occurrences-find.html?showComment=1300990383999#c8194665087736057802' 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/2009/01/integer-array-odd-even-occurrences-find.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-8426659995757249102' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/8426659995757249102' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1641559188'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-7355336050332392939</id><published>2011-02-08T15:47:05.692-08:00</published><updated>2011-02-08T15:47:05.692-08:00</updated><title type='text'>Very beautiful answer, just got that trick today i...</title><summary type='text'>Very beautiful answer, just got that trick today in interview, wish I had thought about it!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/7355336050332392939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/7355336050332392939'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/integer-array-odd-even-occurrences-find.html?showComment=1297208825692#c7355336050332392939' 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/2009/01/integer-array-odd-even-occurrences-find.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-8426659995757249102' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/8426659995757249102' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1062885934'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-5923070938357491922</id><published>2010-06-08T23:14:29.455-07:00</published><updated>2010-06-08T23:14:29.455-07:00</updated><title type='text'>The XOR one is a super brilliant answer. Thanks fo...</title><summary type='text'>The XOR one is a super brilliant answer. Thanks for posting it and making us think in that direction.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/5923070938357491922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8426659995757249102/comments/default/5923070938357491922'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/integer-array-odd-even-occurrences-find.html?showComment=1276064069455#c5923070938357491922' 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/2009/01/integer-array-odd-even-occurrences-find.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-8426659995757249102' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/8426659995757249102' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1918858765'/></entry></feed>
