Skip to content

Commit 850b58a

Browse files
committed
Deploy billryan/algorithm-exercise to github.com/billryan/algorithm-exercise.git:gh-pages
0 parents  commit 850b58a

File tree

578 files changed

+1605691
-0
lines changed

Some content is hidden

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

578 files changed

+1605691
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Node rules:
2+
## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
3+
.grunt
4+
5+
## Dependency directory
6+
## Commenting this out is preferred by some people, see
7+
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
8+
node_modules
9+
10+
# Book build output
11+
_book
12+
13+
*.log
14+
15+
# MAC OS X
16+
**/.DS_Store
17+
18+
# Python
19+
*.py[cod]
20+
*$py.class
21+
.python-version
22+
23+
# Auth
24+
#######
25+
scripts/auth.conf

.travis.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
sudo: required
2+
3+
language: node_js
4+
5+
node_js:
6+
- stable
7+
8+
before_install:
9+
- npm install gitbook-cli -g
10+
- npm install svgexport -g
11+
- gitbook fetch 3.2.3
12+
- sudo apt-get update -qq
13+
# install calibre latest version
14+
- sudo -v && wget --no-check-certificate -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
15+
16+
install:
17+
- gitbook install
18+
19+
before_script:
20+
- cp LANGS.md LANGS.md.bak
21+
- mkdir -p ~/.fonts/noto
22+
- mkdir -p ~/raw_fonts/{NotoSans-unhinted,NotoSansCJKsc-hinted,NotoSansCJKtc-hinted}
23+
- wget -P ~/raw_fonts https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-unhinted.zip
24+
- unzip ~/raw_fonts/NotoSans-unhinted.zip -d ~/raw_fonts/NotoSans-unhinted
25+
- wget -P ~/raw_fonts https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKsc-hinted.zip
26+
- unzip ~/raw_fonts/NotoSansCJKsc-hinted.zip -d ~/raw_fonts/NotoSansCJKsc-hinted
27+
- wget -P ~/raw_fonts https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKtc-hinted.zip
28+
- unzip ~/raw_fonts/NotoSansCJKtc-hinted.zip -d ~/raw_fonts/NotoSansCJKtc-hinted
29+
30+
script:
31+
- sed '/\(en\/\)/! d' LANGS.md.bak > LANGS.md
32+
- mv -t ~/.fonts/noto ~/raw_fonts/NotoSans-unhinted/*-Regular.ttf ~/raw_fonts/NotoSans-unhinted/*-Bold.ttf ~/raw_fonts/NotoSans-unhinted/*-Black.ttf
33+
- sudo fc-cache -f -v
34+
- gitbook pdf .
35+
- gitbook epub .
36+
- gitbook mobi .
37+
- rm ~/.fonts/noto/*.ttf
38+
39+
- sed '/\(zh-hans\/\)/! d' LANGS.md.bak > LANGS.md
40+
- mv -t ~/.fonts/noto ~/raw_fonts/NotoSansCJKsc-hinted/*-DemiLight.otf ~/raw_fonts/NotoSansCJKsc-hinted/*-Bold.otf ~/raw_fonts/NotoSansCJKsc-hinted/*-Black.otf
41+
- sudo fc-cache -f -v
42+
- gitbook pdf .
43+
- gitbook epub .
44+
- gitbook mobi .
45+
- rm ~/.fonts/noto/*.otf
46+
47+
- sed '/\(zh-tw\/\)/! d' LANGS.md.bak > LANGS.md
48+
- mv -t ~/.fonts/noto ~/raw_fonts/NotoSansCJKtc-hinted/*-DemiLight.otf ~/raw_fonts/NotoSansCJKtc-hinted/*-Bold.otf ~/raw_fonts/NotoSansCJKtc-hinted/*-Black.otf
49+
- sudo fc-cache -f -v
50+
- gitbook pdf .
51+
- gitbook epub .
52+
- gitbook mobi .
53+
54+
- cp LANGS.md.bak LANGS.md
55+
- gitbook build .
56+
57+
before_deploy:
58+
- tar czvf book_html.tar.gz _book/
59+
- git tag "$(date +'%Y%m%d_%H%M%S')"
60+
61+
deploy:
62+
- provider: pages
63+
skip-cleanup: true
64+
github-token:
65+
secure: B/dqY0sC9I0Uu5o3HVHouX/mfLTUH/dt16IsBdm+sZQW+/YeTUTGwpx+Vl5lXpMhUoxrh60Qxt0KbnqvPqAxsPXGMH2Mhl1E5lgvMYViOGQyx9JJuuba+GWOzD+r2+XOUsqBzOCUhvC7iZbuGiWYvV2+4noAmAoKa1pO1j2yxiI=
66+
keep-history: false
67+
local-dir: _book
68+
on:
69+
branch: master
70+
target-branch: gh-pages
71+
- provider: releases
72+
api_key:
73+
secure: B/dqY0sC9I0Uu5o3HVHouX/mfLTUH/dt16IsBdm+sZQW+/YeTUTGwpx+Vl5lXpMhUoxrh60Qxt0KbnqvPqAxsPXGMH2Mhl1E5lgvMYViOGQyx9JJuuba+GWOzD+r2+XOUsqBzOCUhvC7iZbuGiWYvV2+4noAmAoKa1pO1j2yxiI=
74+
file:
75+
- book_html.tar.gz
76+
- book_en.epub
77+
- book_en.mobi
78+
- book_en.pdf
79+
- book_zh-hans.epub
80+
- book_zh-hans.mobi
81+
- book_zh-hans.pdf
82+
- book_zh-tw.epub
83+
- book_zh-tw.mobi
84+
- book_zh-tw.pdf
85+
skip_cleanup: true
86+
on:
87+
repo: billryan/algorithm-exercise
88+
89+
after_success:
90+
- ls -lh
91+
92+
branches:
93+
only:
94+
- master

LANGS.md.bak

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* [English](en/)
2+
* [繁體中文](zh-tw/)
3+
* [简体中文](zh-hans/)

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Data Structure and Algorithm/leetcode/lintcode
2+
3+
[![Build Status](https://travis-ci.org/billryan/algorithm-exercise.svg?branch=master)](https://travis-ci.org/billryan/algorithm-exercise)
4+
[![Slack Status](https://slackin4ds-algo.herokuapp.com/badge.svg)](https://slackin4ds-algo.herokuapp.com/)
5+
[![Chat on Slack](https://img.shields.io/badge/chat-on_slack-orange.svg)](https://ds-algo.slack.com/)
6+
7+
This book is some notes on learning data structure and algorithm. It was written in Simplified Chinese but other languages such as English and Traditional Chinese are work in progress.
8+
9+
- [English](https://algorithm.yuanbin.me/en/), seldom updated
10+
- [简体中文](https://algorithm.yuanbin.me/zh-hans/), frequently updated
11+
- [繁體中文](https://algorithm.yuanbin.me/zh-tw/), seldom updated
12+
13+
## Introduction
14+
15+
1. Part I is some brief introduction of basic data structures and algorithm, such as linked lists, stack, queues, trees, sorting.
16+
2. Part II is the analysis and summary of programming problems, and most of the programming problems come from <https://leetcode.com/>, <http://www.lintcode.com/>, <http://www.geeksforgeeks.org/>, <http://hihocoder.com/>, <https://www.topcoder.com/>.
17+
3. Part III is the appendix of resume and other supplements.
18+
19+
This project is hosted on <https://github.com/billryan/algorithm-exercise> and rendered by [GitBook](https://www.gitbook.com/book/yuanbin/algorithm/details). You can star the repository on the GitHub to keep track of updates. Another choice is to subscribe channel `#github_commit` via Slack <https://ds-algo.slack.com/messages/github_commit/>.
20+
21+
Feel free to access <http://slackin4ds-algo.herokuapp.com> with Slack invite automation.
22+
23+
You can view/search this document online or offline, feel free to read it. :)
24+
25+
- Online(Rendered by GitBook): <https://algorithm.yuanbin.me>
26+
- Site Search via Google: `keywords site:algorithm.yuanbin.me`
27+
- Site Search via Algolia: Click `Type to search` on the top left corner of webpages
28+
- Offline(Compiled by GitBook on Travis-CI): ePub, PDF, MOBI
29+
30+
## License
31+
32+
This work is licensed under the **Creative Commons Attribution-ShareAlike 4.0 International License**. To view a copy of this license, please visit <http://creativecommons.org/licenses/by-sa/4.0/>
33+
34+
## To Do
35+
36+
- [ ] add multiple languages support
37+
- [ ] add implementations of `Python`, `C++` and `Java` code
38+
- [x] add time and space complexity analysis
39+
- [x] add proper Chinese fonts for PDF output

book_en.epub

1.26 MB
Binary file not shown.

book_en.mobi

293 KB
Binary file not shown.

book_en.pdf

452 KB
Binary file not shown.

book_zh-hans.epub

10.8 MB
Binary file not shown.

book_zh-hans.mobi

4.25 MB
Binary file not shown.

book_zh-hans.pdf

33.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)