<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_日复一日</title><subtitle type="text">厚积薄发|跳跃的人生</subtitle><id>http://feed.cnblogs.com/blog/u/8878/rss</id><updated>2007-01-11T03:04:01Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/8878/rss"/><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/26/436484.html</id><title type="text">微软面试智力题（5）</title><summary type="text">You've got someone working for you for seven days and a gold bar to pay them. The gold bar is segmented into seven connected pieces. You must give them a piece of gold at the end of every day. If you ...</summary><published>2006-06-26T15:59:00Z</published><updated>2006-06-26T15:59:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/26/436484.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/26/436484.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/21/431896.html</id><title type="text">微软面试智力题（4）</title><summary type="text">3. You have 8 balls. One of them is defective and weighs less than others. You have a balance to measure balls against each other. In 2 weighings how do you find the defective one? 经典的八球称重，不高兴做了，谁来？</summary><published>2006-06-21T10:09:00Z</published><updated>2006-06-21T10:09:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/21/431896.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/21/431896.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/21/431843.html</id><title type="text">微软面试智力题（3）</title><summary type="text">2. There are 3 baskets. one of them have apples, one has oranges only and the other has mixture of apples and oranges. The labels on their baskets always lie. (i.e. if the label says oranges, you are ...</summary><published>2006-06-21T09:39:00Z</published><updated>2006-06-21T09:39:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/21/431843.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/21/431843.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/21/431829.html</id><title type="text">微软面试智力题（2）</title><summary type="text">* 1. Given a rectangular (cuboidal for the puritans) cake with a rectangular piece removed (any size or orientation), how would you cut the remainder of the cake into two equal halves with one straigh...</summary><published>2006-06-21T09:35:00Z</published><updated>2006-06-21T09:35:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/21/431829.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/21/431829.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/21/431787.html</id><title type="text">微软面试智力题（1）</title><summary type="text">0. Classic: If a bear walks one mile south, turns left and walks one mile to the east and then turns left again and walks one mile north and arrives at its original position, what is the color of the ...</summary><published>2006-06-21T09:13:00Z</published><updated>2006-06-21T09:13:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/21/431787.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/21/431787.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/20/430347.html</id><title type="text">微软面试技术题（0）</title><summary type="text">应朋友们的要求，现在把目录整理如下。希望能方便大家阅读。今后系列文章不再发布。（如果中间图片信息不能显示，请刷新）微软面试技术题（1）微软面试技术题（2）微软面试技术题（3）微软面试技术题（4）微软面试技术题（5）微软面试技术题（6）微软面试技术题（7）微软面试技术题（8）微软面试技术题（9）微软面试技术题（10）微软面试技术题（11）微软面试技术题（12）微软面试技术题（13）微软面试技术题（1...</summary><published>2006-06-20T02:50:00Z</published><updated>2006-06-20T02:50:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/20/430347.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/20/430347.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/20/430006.html</id><title type="text">微软面试技术题（5）</title><summary type="text">输入一个字符串，输出长型整数。1longatol(char*str){2char*p=str;3longl=1;m=0;4if(*p=='-'){5l=-1;6++p;7}8while(isDigit(*p)){9m=m*10+p;10++p;11}12if(!p)returnm*l;13elsereturnerror;14}</summary><published>2006-06-19T16:58:00Z</published><updated>2006-06-19T16:58:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/20/430006.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/20/430006.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/18/429003.html</id><title type="text">微软面试技术题（4）</title><summary type="text">输出一个字符串所有排列。注意有重复字符。1char[]p;2voidperm(chars[],inti,intn){3intj;4chartemp;5for(j=0;j&amp;lt;n;++j){6if(j!=0&amp;amp;&amp;amp;s[j]==s[j-1]);7elseif(s[j]!='@'){8p[i]=s[j];9s[j]='@';10if(i==n-1){11p[n]='\0';12printf...</summary><published>2006-06-18T13:17:00Z</published><updated>2006-06-18T13:17:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/18/429003.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/18/429003.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/17/428037.html</id><title type="text">微软面试技术题（22）</title><summary type="text">面试过程中我还遇到了下面几题：1、如何删除链表的倒数第m的元素？我的方法是先用pre指针从链表头开始步进m，新建pst节点next指针指向头节点，cur指针指向头节点，然后pre，cur，post三个指针一起步进，当pre指向链表结尾的时候cur指向倒数第m个元素，最后利用pst指针删除cur指向元素。2、如何判断一个字符串是对称的？如a，aa，aba。设置头尾指针同时向中间比较靠齐直至相遇。3、...</summary><published>2006-06-17T00:54:00Z</published><updated>2006-06-17T00:54:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/17/428037.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/17/428037.html"/></entry><entry><id>http://www.cnblogs.com/wqguan/archive/2006/06/17/428035.html</id><title type="text">微软面试技术题（21）</title><summary type="text">不重复地输出升序数组中的元素。1 void outputUnique( char []str, int n)  {2  if (n &amp;lt;= 0 ) return ;3 elseif(n == 1 )putchar(str[ 0 ]);4 else {5  int i = 0 ,j = 1 ;6 putchar(str[ 0 ]);7 while (j &amp;lt; n)  {8 if (str[j...</summary><published>2006-06-17T00:54:00Z</published><updated>2006-06-17T00:54:00Z</updated><author><name>GwQ</name><uri>http://www.cnblogs.com/wqguan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/wqguan/archive/2006/06/17/428035.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/wqguan/archive/2006/06/17/428035.html"/></entry></feed>
