Skip to content

Commit 63b6b0a

Browse files
committed
更新
1 parent 3669775 commit 63b6b0a

File tree

224 files changed

+14008
-12561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+14008
-12561
lines changed

_book/algorithm/For-offer.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969

7070

7171

72+
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
73+
74+
75+
7276
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
7377

7478

@@ -3821,7 +3825,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
38213825
<script>
38223826
var gitbook = gitbook || [];
38233827
gitbook.push(function() {
3824-
gitbook.page.hasChanged({"page":{"title":"剑指offer","level":"5.1","depth":1,"next":{"title":"01.二维数组中的查找","level":"5.1.1","depth":2,"path":"algorithm/For-offer/01.md","ref":"algorithm/For-offer/01.md","articles":[]},"previous":{"title":"海量数据处理","level":"4.7","depth":1,"path":"data-structure/mass_data_processing.md","ref":"data-structure/mass_data_processing.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","edit-link@^2.0.2","advanced-emoji@^0.2.1","anchors@^0.7.1","include-codeblock@^3.0.2","ace@^0.3.2","emphasize@^1.1.0","katex@^1.1.3","splitter@^0.0.8","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","local-video@^1.0.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © ruheng.com 2017","modify_label":"该文件修订时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"ace":{},"github":{"url":"https://github.com/LRH1993/android_interview"},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"splitter":{},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{"tag":"b"},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"github-buttons":{"repo":"LRH1993/android_interview","types":["star"],"size":"small"},"expandable-chapters-small":{},"local-video":{},"advanced-emoji":{"embedEmojis":false},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":true,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/LRH1993/android_interview/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"search-plus":{}},"theme":"default","author":"ruheng","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Android校招面试指南","language":"zh-hans","output.name":"site","links":{"sidebar":{"Home":"http://lruheng.com/"}},"gitbook":"3.2.3","description":"Android面试必备,记录自己的秋招之路"},"file":{"path":"algorithm/For-offer.md","mtime":"2017-09-11T02:53:12.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-16T12:05:21.906Z"},"basePath":"..","book":{"language":""}});
3828+
gitbook.page.hasChanged({"page":{"title":"剑指offer","level":"5.1","depth":1,"next":{"title":"01.二维数组中的查找","level":"5.1.1","depth":2,"path":"algorithm/For-offer/01.md","ref":"algorithm/For-offer/01.md","articles":[]},"previous":{"title":"海量数据处理","level":"4.7","depth":1,"path":"data-structure/mass_data_processing.md","ref":"data-structure/mass_data_processing.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","edit-link@^2.0.2","advanced-emoji@^0.2.1","anchors@^0.7.1","include-codeblock@^3.0.2","ace@^0.3.2","emphasize@^1.1.0","katex@^1.1.3","splitter@^0.0.8","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","local-video@^1.0.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © ruheng.com 2017","modify_label":"该文件修订时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"ace":{},"github":{"url":"https://github.com/LRH1993/android_interview"},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"splitter":{},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{"tag":"b"},"highlight":{},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"github-buttons":{"repo":"LRH1993/android_interview","types":["star"],"size":"small"},"expandable-chapters-small":{},"local-video":{},"advanced-emoji":{"embedEmojis":false},"include-codeblock":{"check":false,"edit":false,"fixlang":false,"lang":"","template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":true,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/LRH1993/android_interview/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"search-plus":{}},"theme":"default","author":"ruheng","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Android校招面试指南","language":"zh-hans","output.name":"site","links":{"sidebar":{"Home":"http://lruheng.com/"}},"gitbook":"3.2.3","description":"Android面试必备,记录自己的秋招之路"},"file":{"path":"algorithm/For-offer.md","mtime":"2017-09-11T02:53:12.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-16T13:00:43.989Z"},"basePath":"..","book":{"language":""}});
38253829
});
38263830
</script>
38273831
</div>

_book/algorithm/For-offer/01.html

Lines changed: 23 additions & 19 deletions
Large diffs are not rendered by default.

_book/algorithm/For-offer/02.html

Lines changed: 39 additions & 35 deletions
Large diffs are not rendered by default.

_book/algorithm/For-offer/03.html

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969

7070

7171

72+
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
73+
74+
75+
7276
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
7377

7478

@@ -3711,44 +3715,44 @@ <h2 id="&#x4E8C;&#x3001;&#x89E3;&#x9898;&#x601D;&#x8DEF;"><a name="&#x4E8C;&#x30
37113715
<p>&#x4F7F;&#x7528;&#x6808;&#x7684;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;&#x3002;</p>
37123716
<p>&#x5C06;&#x94FE;&#x8868;&#x4ECE;&#x5934;&#x5230;&#x5C3E;&#x538B;&#x5165;&#x6808;&#x5185;&#xFF0C;&#x51FA;&#x6808;&#x7684;&#x8FC7;&#x7A0B;&#x5C31;&#x5BF9;&#x5E94;&#x7740;&#x4ECE;&#x5C3E;&#x5230;&#x5934;&#x3002;</p>
37133717
<h3 id="&#x4E09;&#x3001;&#x89E3;&#x9898;&#x4EE3;&#x7801;"><a name="&#x4E09;&#x3001;&#x89E3;&#x9898;&#x4EE3;&#x7801;" class="anchor-navigation-ex-anchor" href="#&#x4E09;&#x3001;&#x89E3;&#x9898;&#x4EE3;&#x7801;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E09;&#x3001;&#x89E3;&#x9898;&#x4EE3;&#x7801;</h3>
3714-
<pre><code class="lang-java">public class Test {
3715-
/**
3718+
<pre><code class="lang-java"><span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Test</span> </span>{
3719+
<span class="hljs-comment">/**
37163720
* &#x7ED3;&#x70B9;&#x5BF9;&#x8C61;
3717-
*/
3718-
public static class ListNode {
3719-
int val; // &#x7ED3;&#x70B9;&#x7684;&#x503C;
3720-
ListNode nxt; // &#x4E0B;&#x4E00;&#x4E2A;&#x7ED3;&#x70B9;
3721+
*/</span>
3722+
<span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">ListNode</span> </span>{
3723+
<span class="hljs-keyword">int</span> val; <span class="hljs-comment">// &#x7ED3;&#x70B9;&#x7684;&#x503C; </span>
3724+
ListNode nxt; <span class="hljs-comment">// &#x4E0B;&#x4E00;&#x4E2A;&#x7ED3;&#x70B9; </span>
37213725
}
37223726

3723-
/**
3727+
<span class="hljs-comment">/**
37243728
* &#x8F93;&#x5165;&#x4E2A;&#x94FE;&#x8868;&#x7684;&#x5934;&#x7ED3;&#x70B9;&#xFF0C;&#x4ECE;&#x5C3E;&#x5230;&#x5934;&#x53CD;&#x8FC7;&#x6765;&#x6253;&#x5370;&#x51FA;&#x6BCF;&#x4E2A;&#x7ED3;&#x70B9;&#x7684;&#x503C;
37253729
* &#x4F7F;&#x7528;&#x6808;&#x7684;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;
37263730
*
3727-
* @param root &#x94FE;&#x8868;&#x5934;&#x7ED3;&#x70B9;
3728-
*/
3729-
public static void printListInverselyUsingIteration(ListNode root) {
3730-
Stack&lt;ListNode&gt; stack = new Stack&lt;&gt;();
3731-
while (root != null) {
3731+
* <span class="hljs-doctag">@param</span> root &#x94FE;&#x8868;&#x5934;&#x7ED3;&#x70B9;
3732+
*/</span>
3733+
<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">printListInverselyUsingIteration</span><span class="hljs-params">(ListNode root)</span> </span>{
3734+
Stack&lt;ListNode&gt; stack = <span class="hljs-keyword">new</span> Stack&lt;&gt;();
3735+
<span class="hljs-keyword">while</span> (root != <span class="hljs-keyword">null</span>) {
37323736
stack.push(root);
37333737
root = root.nxt;
37343738
}
37353739
ListNode tmp;
3736-
while (!stack.isEmpty()) {
3740+
<span class="hljs-keyword">while</span> (!stack.isEmpty()) {
37373741
tmp = stack.pop();
3738-
System.out.print(tmp.val + &quot; &quot;);
3742+
System.out.print(tmp.val + <span class="hljs-string">&quot; &quot;</span>);
37393743
}
37403744
}
37413745

3742-
/**
3746+
<span class="hljs-comment">/**
37433747
* &#x8F93;&#x5165;&#x4E2A;&#x94FE;&#x8868;&#x7684;&#x5934;&#x7ED3;&#x70B9;&#xFF0C;&#x4ECE;&#x5C3E;&#x5230;&#x5934;&#x53CD;&#x8FC7;&#x6765;&#x6253;&#x5370;&#x51FA;&#x6BCF;&#x4E2A;&#x7ED3;&#x70B9;&#x7684;&#x503C;
37443748
* &#x4F7F;&#x7528;&#x9012;&#x5F52;&#x7684;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;
37453749
*
3746-
* @param root &#x94FE;&#x8868;&#x5934;&#x7ED3;&#x70B9;
3747-
*/
3748-
public static void printListInverselyUsingRecursion(ListNode root) {
3749-
if (root != null) {
3750+
* <span class="hljs-doctag">@param</span> root &#x94FE;&#x8868;&#x5934;&#x7ED3;&#x70B9;
3751+
*/</span>
3752+
<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">printListInverselyUsingRecursion</span><span class="hljs-params">(ListNode root)</span> </span>{
3753+
<span class="hljs-keyword">if</span> (root != <span class="hljs-keyword">null</span>) {
37503754
printListInverselyUsingRecursion(root.nxt);
3751-
System.out.print(root.val + &quot; &quot;);
3755+
System.out.print(root.val + <span class="hljs-string">&quot; &quot;</span>);
37523756
}
37533757
}
37543758
}
@@ -3798,7 +3802,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
37983802
<script>
37993803
var gitbook = gitbook || [];
38003804
gitbook.push(function() {
3801-
gitbook.page.hasChanged({"page":{"title":"03.从尾到头打印链表","level":"5.1.3","depth":2,"next":{"title":"04.重建二叉树","level":"5.1.4","depth":2,"path":"algorithm/For-offer/04.md","ref":"algorithm/For-offer/04.md","articles":[]},"previous":{"title":"02.替换空格","level":"5.1.2","depth":2,"path":"algorithm/For-offer/02.md","ref":"algorithm/For-offer/02.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","edit-link@^2.0.2","advanced-emoji@^0.2.1","anchors@^0.7.1","include-codeblock@^3.0.2","ace@^0.3.2","emphasize@^1.1.0","katex@^1.1.3","splitter@^0.0.8","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","local-video@^1.0.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © ruheng.com 2017","modify_label":"该文件修订时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"ace":{},"github":{"url":"https://github.com/LRH1993/android_interview"},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"splitter":{},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{"tag":"b"},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"github-buttons":{"repo":"LRH1993/android_interview","types":["star"],"size":"small"},"expandable-chapters-small":{},"local-video":{},"advanced-emoji":{"embedEmojis":false},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":true,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/LRH1993/android_interview/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"search-plus":{}},"theme":"default","author":"ruheng","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Android校招面试指南","language":"zh-hans","output.name":"site","links":{"sidebar":{"Home":"http://lruheng.com/"}},"gitbook":"3.2.3","description":"Android面试必备,记录自己的秋招之路"},"file":{"path":"algorithm/For-offer/03.md","mtime":"2017-08-22T07:53:58.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-16T12:05:21.906Z"},"basePath":"../..","book":{"language":""}});
3805+
gitbook.page.hasChanged({"page":{"title":"03.从尾到头打印链表","level":"5.1.3","depth":2,"next":{"title":"04.重建二叉树","level":"5.1.4","depth":2,"path":"algorithm/For-offer/04.md","ref":"algorithm/For-offer/04.md","articles":[]},"previous":{"title":"02.替换空格","level":"5.1.2","depth":2,"path":"algorithm/For-offer/02.md","ref":"algorithm/For-offer/02.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","edit-link@^2.0.2","advanced-emoji@^0.2.1","anchors@^0.7.1","include-codeblock@^3.0.2","ace@^0.3.2","emphasize@^1.1.0","katex@^1.1.3","splitter@^0.0.8","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","local-video@^1.0.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © ruheng.com 2017","modify_label":"该文件修订时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"ace":{},"github":{"url":"https://github.com/LRH1993/android_interview"},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"splitter":{},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{"tag":"b"},"highlight":{},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"github-buttons":{"repo":"LRH1993/android_interview","types":["star"],"size":"small"},"expandable-chapters-small":{},"local-video":{},"advanced-emoji":{"embedEmojis":false},"include-codeblock":{"check":false,"edit":false,"fixlang":false,"lang":"","template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":true,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/LRH1993/android_interview/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"search-plus":{}},"theme":"default","author":"ruheng","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Android校招面试指南","language":"zh-hans","output.name":"site","links":{"sidebar":{"Home":"http://lruheng.com/"}},"gitbook":"3.2.3","description":"Android面试必备,记录自己的秋招之路"},"file":{"path":"algorithm/For-offer/03.md","mtime":"2017-08-22T07:53:58.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-16T13:00:43.989Z"},"basePath":"../..","book":{"language":""}});
38023806
});
38033807
</script>
38043808
</div>

0 commit comments

Comments
 (0)