<?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.post5859452822652535231..comments</id><updated>2011-03-13T22:21:07.250-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, Answers, and Tips: Find an Item in a Sorted Array with Shifted Elemen...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.technicalinterviewquestions.net/feeds/5859452822652535231/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/5859452822652535231/comments/default'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/02/sorted-array-shifted-elements-search.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-9135357127298898073</id><published>2011-03-13T08:16:01.659-07:00</published><updated>2011-03-13T08:16:01.659-07:00</updated><title type='text'>Also, one can extend this exercise and ask to find...</title><summary type='text'>Also, one can extend this exercise and ask to find a shift. One way to do so could be like this: &lt;br /&gt;* Compare first and last array&amp;#39;s elements.&lt;br /&gt;* If first is less than the last then there&amp;#39;s no shift, do a regular binary search.&lt;br /&gt;* If first is greater than the last then there is a shift.&lt;br /&gt;* Start doing kind of binary search looking for element where previous to it is not </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/5859452822652535231/comments/default/9135357127298898073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/5859452822652535231/comments/default/9135357127298898073'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/02/sorted-array-shifted-elements-search.html?showComment=1300029361659#c9135357127298898073' title=''/><author><name>Evgeny Goldin</name><uri>http://www.blogger.com/profile/10395901293881603925</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='32' height='24' src='http://lh4.ggpht.com/_wIOhxgPlWVU/SPYiaXhsL9I/AAAAAAAABvE/HhCjjwyUW7M/9.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.technicalinterviewquestions.net/2009/02/sorted-array-shifted-elements-search.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-5859452822652535231' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/5859452822652535231' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-478706845'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-3384778830794308300</id><published>2011-03-13T08:03:38.280-07:00</published><updated>2011-03-13T08:03:38.280-07:00</updated><title type='text'>Hi, I did it slightly differently via a regular bi...</title><summary type='text'>Hi, I did it slightly differently via a regular binary search with an additional &amp;quot;shift&amp;quot; argument:&lt;br /&gt;&lt;br /&gt;The code: http://goo.gl/6JcAw&lt;br /&gt;The test: http://goo.gl/9Gv3f</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/5859452822652535231/comments/default/3384778830794308300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/5859452822652535231/comments/default/3384778830794308300'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/02/sorted-array-shifted-elements-search.html?showComment=1300028618280#c3384778830794308300' title=''/><author><name>Evgeny Goldin</name><uri>http://www.blogger.com/profile/10395901293881603925</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='32' height='24' src='http://lh4.ggpht.com/_wIOhxgPlWVU/SPYiaXhsL9I/AAAAAAAABvE/HhCjjwyUW7M/9.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.technicalinterviewquestions.net/2009/02/sorted-array-shifted-elements-search.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-5859452822652535231' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/5859452822652535231' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-478706845'/></entry></feed>
