1 Star 0 Fork 3

hwx628/leetcode

forked from BingBox/leetcode 
Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
BSD-3-Clause

#LeetCode题解

##PDF下载 LeetCode题解(C++版).pdf

C++ 文件夹下是C++版,内容一模一样,代码是用C++写的。

Java 文件夹下是Java版,目前正在编写中,由于拖延症,不知道猴年马月能完成。

##LaTeX模板 本书使用的是陈硕开源的模板。这个模板制作精良,很有taste,感谢陈硕

##在Windows下编译

  1. 安装Tex Live 2015 http://www.tug.org/texlive/。把bin目录例如D:\texlive\2015\bin\win32加入PATH环境变量。

  2. 安装字体。这个LaTex模板总共使用了10个字体,下载地址 http://pan.baidu.com/s/1jIgyuRc ,有的字体Windows自带了,有的字体Ubuntu自带了,但都不全,还是一次性安装完所有字体比较方便。

  3. 安装TeXstudio http://texstudio.sourceforge.net/

  4. (可选)启动Tex Live Manager,更新所有已安装的软件包。

  5. 配置TeXstudio。

    启动Texstudio,选择 Options-->Configure Texstudio-->Commands,XeLaTex 设置为 xelatex -synctex=1 -interaction=nonstopmode %.tex

    选择 Options-->Configure Texstudio-->Build

    Build & View 由默认的 PDF Chain 改为 Compile & View;

    Default Compiler 由默认的PdfLaTex 修改为 XeLaTex ;

    PDF Viewer 改为 “Internal PDF Viewer(windowed)”,这样预览时会弹出一个独立的窗口,这样比较方便。

  6. 编译。用TeXstudio打开typeset.tex,点击界面上的绿色箭头就可以开始编译了。

    在下方的窗口可以看到TeXstudio正在使用的编译命令是xelatex -synctex=1 -interaction=nonstopmode "typeset".tex

##在Ubuntu下编译

  1. 安装Tex Live 2015 http://www.tug.org/texlive/

    1.1. 下载TexLive 2015 的ISO 光盘,地址 http://www.tug.org/texlive/acquire-iso.html

    1.2 mount 光盘,sudo ./install-tl 开始安装

    1.3 加入环境变量

     sudo vi /etc/profile
     export PATH=$PATH:/usr/local/texlive/2015/bin/x86_64-linux
     export MANPATH=$MANPATH:/usr/local/texlive/2015/texmf-dist/doc/man
     export INFPATH=$INFPATH:/usr/local/texlive/2015/texmf-dist/doc/info
    
  2. 安装字体。这个LaTex模板总共使用了10个字体,下载地址 http://pan.baidu.com/s/1jIgyuRc ,有的字体Windows自带了,有的字体Ubuntu自带了,但都不全,还是一次性安装完所有字体比较方便。

  3. 安装TeXstudio http://texstudio.sourceforge.net/

  4. 配置TeXstudio。

    启动Texstudio,选择 Options-->Configure Texstudio-->Commands,XeLaTex 设置为 xelatex -synctex=1 -interaction=nonstopmode %.tex

    选择 Options-->Configure Texstudio-->Build

    Build & View 由默认的 PDF Chain 改为 Compile & View;

    Default Compiler 由默认的PdfLaTex 修改为 XeLaTex ;

    PDF Viewer 改为 “Internal PDF Viewer(windowed)”,这样预览时会弹出一个独立的窗口,这样比较方便。

  5. 编译。用TeXstudio打开typeset.tex,点击界面上的绿色箭头就可以开始编译了。

    在下方的窗口可以看到TeXstudio正在使用的编译命令是xelatex -synctex=1 -interaction=nonstopmode "typeset".tex

  6. 懒人版镜像。如果不想进行上面繁琐的安装过程,我做好了一个Ubuntu VMware虚拟机镜像,已经装好了 TexLive 2015, TexStudio和字体(详细的安装日志见压缩包注释),开箱即用,下载地址 http://pan.baidu.com/s/1cLWkgA

##如何贡献代码 编译通过后,就具备了完整的LaTeX编译环境了。

本书模板已经写好了,基本上不需要很多LaTeX知识就可以动手了。

欢迎给本书添加内容或纠正错误,在自己本地编译成PDF,预览没问题后,就可以发pull request过来了。

##北美求职QQ群

237669375

【友情推荐】九章算法

  1. 算法辅导在线视频直播课程:http://www.jiuzhang.com?source=soulmachine

AlgoHub

https://www.algohub.org 是我建立的一个刷题网站,即将上线,敬请期待

纸质书

本书即将由电子工业出版社出版,敬请期待

Copyright (c) 2013, soulmachine and The Contributors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the soulmachine nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

用于同步Leetcode数据 expand collapse
README
BSD-3-Clause
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/hwx628/leetcode.git
git@gitee.com:hwx628/leetcode.git
hwx628
leetcode
leetcode
master

Search