<?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.comments</id><updated>2012-02-05T12:51:26.489-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'>Technical Interview Questions</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.technicalinterviewquestions.net/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/comments/default'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/comments/default?start-index=26&amp;max-results=25'/><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>100</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-9007034799999262114</id><published>2012-01-13T14:51:58.378-08:00</published><updated>2012-01-13T14:51:58.378-08:00</updated><title type='text'>Looks like my fix for the missing type for the Lis...</title><summary type='text'>Looks like my fix for the missing type for the Lists didn&amp;#39;t work. Trying again. The List should show up as  List&amp;lt;string&amp;gt; now.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7043108011910756638/comments/default/9007034799999262114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7043108011910756638/comments/default/9007034799999262114'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/algorithm-permutations-string.html?showComment=1326495118378#c9007034799999262114' 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/algorithm-permutations-string.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-7043108011910756638' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/7043108011910756638' 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-3737200979446287345</id><published>2012-01-11T20:08:18.927-08:00</published><updated>2012-01-11T20:08:18.927-08:00</updated><title type='text'>Did you seriously run that C# code?  It is horribl...</title><summary type='text'>Did you seriously run that C# code?  It is horribly inconsistent.  Looks more like Java to me.  Untyped List objects?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7043108011910756638/comments/default/3737200979446287345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7043108011910756638/comments/default/3737200979446287345'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/algorithm-permutations-string.html?showComment=1326341298927#c3737200979446287345' 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/algorithm-permutations-string.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-7043108011910756638' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/7043108011910756638' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1601752490'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-3986595418860927173</id><published>2012-01-01T00:22:39.676-08:00</published><updated>2012-01-01T00:22:39.676-08:00</updated><title type='text'>thnx $ ths info.............</title><summary type='text'>thnx $ ths info.............</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3916417625412212850/comments/default/3986595418860927173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3916417625412212850/comments/default/3986595418860927173'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/11/difference-between-calloc-malloc-and.html?showComment=1325406159676#c3986595418860927173' title=''/><author><name>bsa</name><uri>http://www.blogger.com/profile/13130519947912221855</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/11/difference-between-calloc-malloc-and.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-3916417625412212850' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/3916417625412212850' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-461660579'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-8148483730286184980</id><published>2011-12-17T09:46:04.608-08:00</published><updated>2011-12-17T09:46:04.608-08:00</updated><title type='text'>good info....
Prateek Jain</title><summary type='text'>good info....&lt;br /&gt;Prateek Jain</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3916417625412212850/comments/default/8148483730286184980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3916417625412212850/comments/default/8148483730286184980'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/11/difference-between-calloc-malloc-and.html?showComment=1324143964608#c8148483730286184980' 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/11/difference-between-calloc-malloc-and.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-3916417625412212850' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/3916417625412212850' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-92295558'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-1770989647810869318</id><published>2011-12-05T19:08:23.888-08:00</published><updated>2011-12-05T19:08:23.888-08:00</updated><title type='text'>Shouldn&amp;#39;t need the special logic for the all n...</title><summary type='text'>Shouldn&amp;#39;t need the special logic for the all negative case if you initialize maxSoFar to int.MinValue. Since you reset curMax to 0 for any negative result, for an all negative case you&amp;#39;ll examine each value independently, and end up with the largest negative in maxSoFar.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6190083236128718044/comments/default/1770989647810869318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6190083236128718044/comments/default/1770989647810869318'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/largest-sum-sub-sequence-integer-array.html?showComment=1323140903888#c1770989647810869318' 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/largest-sum-sub-sequence-integer-array.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-6190083236128718044' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/6190083236128718044' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1136190073'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-2685210085941478898</id><published>2011-11-23T11:51:03.405-08:00</published><updated>2011-11-23T11:51:03.405-08:00</updated><title type='text'>realyy gud</title><summary type='text'>realyy gud</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3916417625412212850/comments/default/2685210085941478898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3916417625412212850/comments/default/2685210085941478898'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/11/difference-between-calloc-malloc-and.html?showComment=1322077863405#c2685210085941478898' 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/11/difference-between-calloc-malloc-and.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-3916417625412212850' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/3916417625412212850' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-873802158'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-4640285342972703117</id><published>2011-11-20T17:24:21.959-08:00</published><updated>2011-11-20T17:24:21.959-08:00</updated><title type='text'>i need using only arrays</title><summary type='text'>i need using only arrays</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7368553050026140180/comments/default/4640285342972703117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7368553050026140180/comments/default/4640285342972703117'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/tree-traversal-preorder-inorder.html?showComment=1321838661959#c4640285342972703117' 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/tree-traversal-preorder-inorder.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-7368553050026140180' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/7368553050026140180' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-812936913'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-4184805578233763250</id><published>2011-11-17T19:48:19.391-08:00</published><updated>2011-11-17T19:48:19.391-08:00</updated><title type='text'>C++ implementation for grouping strings by anagram...</title><summary type='text'>C++ implementation for grouping strings by anagrams&lt;br /&gt;http://yourbitsandbytes.com/viewtopic.php?f=10&amp;amp;t=42&amp;amp;p=3219</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7594621564260669939/comments/default/4184805578233763250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7594621564260669939/comments/default/4184805578233763250'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/03/anagrams-string-array-print.html?showComment=1321588099391#c4184805578233763250' title=''/><author><name>Sesha</name><uri>http://www.blogger.com/profile/08313845704922605781</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/03/anagrams-string-array-print.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-7594621564260669939' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/7594621564260669939' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-167059639'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-6420032893118696721</id><published>2011-11-13T23:08:21.829-08:00</published><updated>2011-11-13T23:08:21.829-08:00</updated><title type='text'>Thanks for providing such good info!</title><summary type='text'>Thanks for providing such good info!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3916417625412212850/comments/default/6420032893118696721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3916417625412212850/comments/default/6420032893118696721'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/11/difference-between-calloc-malloc-and.html?showComment=1321254501829#c6420032893118696721' title=''/><author><name>Azad Ansari</name><uri>http://www.blogger.com/profile/13271114272715001485</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='31' height='21' src='http://1.bp.blogspot.com/-hV0YGTvXrwA/TjqCdI1kHkI/AAAAAAAAACs/vhuyAG9muMA/s220/IMG_1579.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.technicalinterviewquestions.net/2009/11/difference-between-calloc-malloc-and.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-3916417625412212850' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/3916417625412212850' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-253729290'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-3619202818270150706</id><published>2011-11-10T14:38:21.276-08:00</published><updated>2011-11-10T14:38:21.276-08:00</updated><title type='text'>I was actually asked this question in an interview...</title><summary type='text'>I was actually asked this question in an interview.  Needless to say I couldn&amp;#39;t answer it, however the interviewer wasn&amp;#39;t that surprised and didn&amp;#39;t care.  I think this question is just a &amp;quot;let&amp;#39;s just see if he can&amp;quot; kind of question.  If you answer it, you get bonus points, if you can&amp;#39;t, you&amp;#39;ll just have to answer the next questions correctly.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3244634460703258976/comments/default/3619202818270150706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/3244634460703258976/comments/default/3619202818270150706'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/linked-list-delete-node.html?showComment=1320964701276#c3619202818270150706' 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/linked-list-delete-node.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-3244634460703258976' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/3244634460703258976' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-965841860'/></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-6724133870407068956</id><published>2011-09-11T18:10:44.174-07:00</published><updated>2011-09-11T18:10:44.174-07:00</updated><title type='text'>&amp;gt;&amp;gt; In the popStackA() operation, isn&amp;#39;t i...</title><summary type='text'>&amp;gt;&amp;gt; In the popStackA() operation, isn&amp;#39;t it enough if we check stackATop &amp;gt;= 0 alone.&lt;br /&gt;Why do we bother whether stackATop &amp;lt; stackBTop too?&lt;br /&gt;&lt;br /&gt;I agree</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/558934194029345602/comments/default/6724133870407068956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/558934194029345602/comments/default/6724133870407068956'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/04/implement-two-2-stacks-one-1-array.html?showComment=1315789844174#c6724133870407068956' 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/04/implement-two-2-stacks-one-1-array.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-558934194029345602' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/558934194029345602' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-845336086'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-3822548297774758555</id><published>2011-09-09T22:39:05.167-07:00</published><updated>2011-09-09T22:39:05.167-07:00</updated><title type='text'>//Himanshu Negi @ himanshunegi1987@gmail.com
#incl...</title><summary type='text'>//Himanshu Negi @ himanshunegi1987@gmail.com&lt;br /&gt;#include &lt;br /&gt;#include&lt;br /&gt;void func(int a[][4],int,int,int,int);&lt;br /&gt;void main(void)&lt;br /&gt;{&lt;br /&gt; clrscr();&lt;br /&gt;       int a[5][4] = {&lt;br /&gt;         {1,2,3,4},&lt;br /&gt;         {5,6,7,8},&lt;br /&gt;         {9,10,11,12},&lt;br /&gt;         {13,14,15,16},&lt;br /&gt;         {17,18,19,20}&lt;br /&gt;     };&lt;br /&gt;&lt;br /&gt; func(a,0,0,4,3);&lt;br /&gt; getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6978494098156841435/comments/default/3822548297774758555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6978494098156841435/comments/default/3822548297774758555'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/03/print-2d-array-matrix-spiral-order.html?showComment=1315633145167#c3822548297774758555' 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/03/print-2d-array-matrix-spiral-order.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-6978494098156841435' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/6978494098156841435' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-387724607'/></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-9000715777390623294</id><published>2011-09-07T07:59:44.860-07:00</published><updated>2011-09-07T07:59:44.860-07:00</updated><title type='text'>#include
#include
 main()
 {
      int i,j,b,n,c,d...</title><summary type='text'>#include&lt;br /&gt;#include&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt;      int i,j,b,n,c,d,l,s,f;&lt;br /&gt;      n=5;&lt;br /&gt;      int a[n][n];&lt;br /&gt;      printf(&amp;quot;\n Matrix is&amp;quot;);&lt;br /&gt;      for(i=0;i0)&lt;br /&gt;                      {&lt;br /&gt;                              i=n-b;&lt;br /&gt;                                    for(j=(n-b);j&amp;lt;(n-f);j++)&lt;br /&gt;                                    {&lt;br /&gt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6978494098156841435/comments/default/9000715777390623294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6978494098156841435/comments/default/9000715777390623294'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/03/print-2d-array-matrix-spiral-order.html?showComment=1315407584860#c9000715777390623294' title=''/><author><name>pradeepa</name><uri>http://www.blogger.com/profile/03595748361540251916</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/03/print-2d-array-matrix-spiral-order.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-6978494098156841435' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/6978494098156841435' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1300308766'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-2072202881530996724</id><published>2011-08-29T07:20:37.515-07:00</published><updated>2011-08-29T07:20:37.515-07:00</updated><title type='text'>CODE (JAVA)
HOW ABOUT THIS LOGIC???


import java....</title><summary type='text'>CODE (JAVA)&lt;br /&gt;HOW ABOUT THIS LOGIC???&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.io.*;&lt;br /&gt;class spiralmatrix&lt;br /&gt;{&lt;br /&gt; static int a[][];&lt;br /&gt; public static void main(String arg[])throws IOException&lt;br /&gt; {&lt;br /&gt;  BufferedReader br= new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  System.out.println(&amp;quot;enter size of matrix&amp;quot;);&lt;br /&gt;  int n=Integer.parseInt(br.readLine());&lt;br /&gt;  a=</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6978494098156841435/comments/default/2072202881530996724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6978494098156841435/comments/default/2072202881530996724'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/03/print-2d-array-matrix-spiral-order.html?showComment=1314627637515#c2072202881530996724' 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/03/print-2d-array-matrix-spiral-order.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-6978494098156841435' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/6978494098156841435' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-631127769'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-2163813510168588417</id><published>2011-07-24T12:07:13.280-07:00</published><updated>2011-07-24T12:07:13.280-07:00</updated><title type='text'>awesome concept bro and u have xplained it very we...</title><summary type='text'>awesome concept bro and u have xplained it very wel&lt;br /&gt;thanks &lt;br /&gt;rahul...</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6978494098156841435/comments/default/2163813510168588417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6978494098156841435/comments/default/2163813510168588417'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/03/print-2d-array-matrix-spiral-order.html?showComment=1311534433280#c2163813510168588417' 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/03/print-2d-array-matrix-spiral-order.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-6978494098156841435' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/6978494098156841435' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1438813698'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-8690301601417724874</id><published>2011-06-22T00:47:26.026-07:00</published><updated>2011-06-22T00:47:26.026-07:00</updated><title type='text'>// Both the above code doesn&amp;#39;t work and produc...</title><summary type='text'>// Both the above code doesn&amp;#39;t work and produces invalid result. Here is the correct code and works perfectly for the above example.&lt;br /&gt;&lt;br /&gt;        void mergeArray(int[] A1, int[] A2)&lt;br /&gt;        {&lt;br /&gt;            int count = FindCount(A2); // get the count of full slots&lt;br /&gt;            int i = A1.Length - 1;&lt;br /&gt;            int j = count - 1;&lt;br /&gt;            int k = A2.Length - 1;&lt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/284463428017531536/comments/default/8690301601417724874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/284463428017531536/comments/default/8690301601417724874'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/merge-sorted-arrays-empty-slots.html?showComment=1308728846026#c8690301601417724874' title=''/><author><name>thiruv</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/merge-sorted-arrays-empty-slots.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-284463428017531536' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/284463428017531536' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-274797178'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-7892963631114632814</id><published>2011-06-16T22:04:50.446-07:00</published><updated>2011-06-16T22:04:50.446-07:00</updated><title type='text'>here&amp;#39;s a rather funny and humors way to explai...</title><summary type='text'>here&amp;#39;s a rather funny and humors way to explain anagrams check out what&amp;#39;s donald knuth, alan tourin&amp;#39;g anagrams are on FULLBC webcomic&lt;br /&gt;http://fullbc.in/?comicid=145</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7594621564260669939/comments/default/7892963631114632814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/7594621564260669939/comments/default/7892963631114632814'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/03/anagrams-string-array-print.html?showComment=1308287090446#c7892963631114632814' 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/03/anagrams-string-array-print.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-7594621564260669939' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/7594621564260669939' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1290880750'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-4894207098518287948</id><published>2011-05-26T09:57:22.444-07:00</published><updated>2011-05-26T09:57:22.444-07:00</updated><title type='text'>The term polymorphism means multiple forms. In the...</title><summary type='text'>The term polymorphism means multiple forms. In the world of programming, it refers to the ability of an object to exist in multiple forms.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The term polymorphism means multiple forms. In the world of programming, it refers to the ability of an object to exist in multiple forms. Polymorphism is one one of the key concepts of Object Oriented Programming.&lt;br /&gt;&lt;br /&gt;Why do we </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8412514251340435880/comments/default/4894207098518287948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/8412514251340435880/comments/default/4894207098518287948'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2008/12/object-oriented-programmings-oops.html?showComment=1306429042444#c4894207098518287948' title=''/><author><name>www.dotnettutorials.com/</name><uri>http://www.blogger.com/profile/16354393389547070075</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/object-oriented-programmings-oops.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-8412514251340435880' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/8412514251340435880' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1716994083'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-5321752403901323557</id><published>2011-05-10T09:51:28.911-07:00</published><updated>2011-05-10T09:51:28.911-07:00</updated><title type='text'>In the popStackA() operation, isn&amp;#39;t it enough ...</title><summary type='text'>In the popStackA() operation, isn&amp;#39;t it enough if we check stackATop &amp;gt;= 0 alone.&lt;br /&gt;Why do we bother whether stackATop &amp;lt; stackBTop too?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/558934194029345602/comments/default/5321752403901323557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/558934194029345602/comments/default/5321752403901323557'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/04/implement-two-2-stacks-one-1-array.html?showComment=1305046288911#c5321752403901323557' 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/04/implement-two-2-stacks-one-1-array.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-558934194029345602' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/558934194029345602' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-464085890'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-7676564580273016591</id><published>2011-05-10T09:25:44.407-07:00</published><updated>2011-05-10T09:25:44.407-07:00</updated><title type='text'>I have a doubt..
shouldn&amp;#39;t the largest be init...</title><summary type='text'>I have a doubt..&lt;br /&gt;shouldn&amp;#39;t the largest be initialized to&lt;br /&gt;-int.MinValue?&lt;br /&gt;If all numbers in the array are negative, then largest will be int.MinValue according to the above program and it will return the largest as answer. But the correct value should be the maximum number present in the array</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6190083236128718044/comments/default/7676564580273016591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6190083236128718044/comments/default/7676564580273016591'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/01/largest-sum-sub-sequence-integer-array.html?showComment=1305044744407#c7676564580273016591' 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/largest-sum-sub-sequence-integer-array.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-6190083236128718044' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/6190083236128718044' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-464085890'/></entry><entry><id>tag:blogger.com,1999:blog-2682781734368178743.post-1762659251102464036</id><published>2011-04-08T21:30:51.507-07:00</published><updated>2011-04-08T21:30:51.507-07:00</updated><title type='text'>what about MECHANICAL ENGINEERING books ?</title><summary type='text'>what about MECHANICAL ENGINEERING books ?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6009214993109752429/comments/default/1762659251102464036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2682781734368178743/6009214993109752429/comments/default/1762659251102464036'/><link rel='alternate' type='text/html' href='http://www.technicalinterviewquestions.net/2009/11/must-read-books-for-technicalprogrammin.html?showComment=1302323451507#c1762659251102464036' title=''/><author><name>aki</name><uri>http://www.blogger.com/profile/16518976329391182082</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/11/must-read-books-for-technicalprogrammin.html' ref='tag:blogger.com,1999:blog-2682781734368178743.post-6009214993109752429' source='http://www.blogger.com/feeds/2682781734368178743/posts/default/6009214993109752429' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-630387614'/></entry><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-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></feed>
