<?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.post3697086262294635009..comments</id><updated>2011-06-03T21:47:22.419-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: Function to perform Binary Search on a Sorted Arra...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.technicalinterviewquestions.net/feeds/3697086262294635009/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3697086262294635009/comments/default'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/binary-search-sorted-array.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>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-4237372951316268986</id><published>2011-04-08T04:07:19.937-07:00</published><updated>2011-04-08T04:07:19.937-07:00</updated><title type='text'>This answer is WRONG. Try searching the array {2,3...</title><summary type='text'>This answer is WRONG. Try searching the array {2,3} with value 1.&lt;br /&gt;First iteration: start = 0, end = 1, medianIndex = 0&lt;br /&gt;Second iteration: start = 0, end = -1, medianIndex = 0&lt;br /&gt;Third iteration: start = 0, end = -1, medianIndex = 0&lt;br /&gt;As you can see, it is stuck in an infinite loop!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3697086262294635009/comments/default/4237372951316268986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3697086262294635009/comments/default/4237372951316268986'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/binary-search-sorted-array.html?showComment=1302260839937#c4237372951316268986' 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/binary-search-sorted-array.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-3697086262294635009' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/3697086262294635009' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1992599934'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-8098157129917105537</id><published>2010-08-23T12:51:58.840-07:00</published><updated>2010-08-23T12:51:58.840-07:00</updated><title type='text'>no...(end-start)/2+start is save method to avoid o...</title><summary type='text'>no...(end-start)/2+start is save method to avoid overflow</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3697086262294635009/comments/default/8098157129917105537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3697086262294635009/comments/default/8098157129917105537'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/binary-search-sorted-array.html?showComment=1282593118840#c8098157129917105537' 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/binary-search-sorted-array.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-3697086262294635009' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/3697086262294635009' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1993480115'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-1356755523706617901</id><published>2010-02-14T14:19:14.171-08:00</published><updated>2010-02-14T14:19:14.171-08:00</updated><title type='text'>Thanks for this. Only comment I have is that the l...</title><summary type='text'>Thanks for this. Only comment I have is that the line -&lt;br /&gt;&lt;br /&gt;int medianIndex = (end - start) / 2 + start;&lt;br /&gt;&lt;br /&gt;can be simplied to -&lt;br /&gt;&lt;br /&gt;int medianIndex = (end + start)/2;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3697086262294635009/comments/default/1356755523706617901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3697086262294635009/comments/default/1356755523706617901'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/binary-search-sorted-array.html?showComment=1266185954171#c1356755523706617901' 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/binary-search-sorted-array.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-3697086262294635009' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/3697086262294635009' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2129687297'/></entry></feed>
