diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 6ce4fef4a..000000000 --- a/.drone.yml +++ /dev/null @@ -1,13 +0,0 @@ -kind: pipeline -name: default - -workspace: - base: /go - path: leetcode/github.com/kylesliu/awesome-golang-algorithm - -steps: - - name: test - image: golang - commands: - - go get - - go test \ No newline at end of file diff --git a/.golangci.yml b/.golangci.yml deleted file mode 100644 index 71a937203..000000000 --- a/.golangci.yml +++ /dev/null @@ -1,6 +0,0 @@ -service: - project-path: github.com/kylesliu/awesome-golang-algorithm # vanity import path if needed - golangci-lint-version: 1.12.x - prepare: - - go get -t -v ./... - - bash ./test.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f51866517..000000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: go - -go: - - 1.11.x - - 1.12.x - - 1.13.x - -# whitelist -branches: - only: - - master -# - stable - -script: -- go get -t -v ./... -#- go vet ./... -- bash ./test.sh - -after_success: -- bash <(curl -s https://codecov.io/bash) diff --git a/CONTRIBUTOR.md b/CONTRIBUTOR.md deleted file mode 100644 index d595620bc..000000000 --- a/CONTRIBUTOR.md +++ /dev/null @@ -1 +0,0 @@ -## CONTRIBUTOR \ No newline at end of file diff --git a/Companies.md b/Companies.md deleted file mode 100644 index ba37ae953..000000000 --- a/Companies.md +++ /dev/null @@ -1,127 +0,0 @@ -# LeetCode companies - -### Google -``` -4,10,17,20,22,23,31,42,44,50,54,56,57,66,128,133,139,140,146,155,158 -159,162,163,166,173,200,208,212,214,218,224,228,230,231,239,240,246 -247,249,251,253,257,259,261,266,269,270,271,272,274,276,279,280,281 -282,284,286,288,289,293,294,295,297,298,302,305,308,309,310,312,313 -314,315,316,317,318,320,321,323,324,326,327,329,330,331,332,336,340 -341,345,346,348,351,353,354,356,357,358,359,360,361,362,363,368,369 -370,373,374,375,377,378,379,380,382,388,389,391,393,394,397,399,400 -401,402,406,407,408,409,411,415,417,418,421,422,425,444,447,448,451 -459,460,463,465,469,471,474,475,480,481-487,490,493,494,498,501,503 -505,506,514,520,521,522,524,526,527,530,531,533,534,535,541,542,543 -544,545,551,552,560,562,568,569,572 -``` - -### Facebook -``` -1,10,13,15,17,20,23,25,26,28,33,38,43,44,49,50,56,57,67,68,69,71,75,76 -78,79,80,85,88,90,91,98,102,117,121,125,127,128,133,139,146,157,158,161 -168,173,200,206,208,209,210,211,215,218,221,234,235,236,238,252,253,257 -261,265,269,273,274,275,277,278,282,283,285,286,297,301,311,314,325,334 -341,377,380,398,404,410,461,477,494,523,525,534,535,543,554 -``` - -### Linkedin -``` -1,21,23,33,34,46,47,50,53,56,57,65,68,76,101-104,127,149,150,152 -156,170,173,18,198,205,236,238,243,244,245,254,256,277,297,311,339 -364,366,367,464,515 -``` - -### Microsoft -``` -1,2,4,5,8,13,15,20,21,23-26,28,33,46,47,48,53-56,71,73,75,79,88,91 -94,98,101,102,103,106,112,114,116,117,121,124,125,138,141,146,151,153 -160,162,165,168,171,173,174,186,189,191,200,204,206,208,212,213,215 -218,232,235,236,237,238,258,268,270,273,285,297,300,333,348,365,387 -419,445,452,513,567 -``` - -### Amazon -``` -1,2,3,5,8,15,1,20,21,,23,42,48,49,73,78,89,98,102,119,121,126,127,138 -139,141,146,155,160,167,186,199,200,204,206,215,234,235,236,238,239,240 -242,297,355,380,387,396,414,438,449,451,459,460,508,516,517,529,532,534 -535,536,537,538,545,579 -``` - -### Uber -``` -1,8,10,13,17,22,23,24,33,36,37,39,49,54,76,78,91,104,121,125,133,138 -139,140,146,155,161,171,186,202,206,208,230,242,249,254,262,266,290 -291,297,337,373,380,432,450,516,534,535 -``` - -### Yelp -``` -1,3,14,49,56,126,127,151,206,207,218,242,347,380,381,564 -``` - - -### Apple -``` -1,4,7,21,28,36,42,48,69,70,102,104,118,149,151,165,190,191,206,207,215 -221,236,237,238,240,257,284,383 -``` - -### Bloomberg -``` -1,2,3,5,7,8,11,13,15,16,20,24,26,33,42,49,50,53,56,62,63,69,79,88,98,100,101,102 -103,105,110,113,117,121,122,131,138,139,141,146,151,155,158,160,172,189,206,208 -215,225,230,232,266,268,2774,283,287,297,386,387,445,556 -``` - -### Yahoo -``` -1,4,13,104,139,141,146,206,217,284,297,479,491 -``` - -### Airbnb -``` -1,2,10,20,23,68,108,136,160,190,198,202,212,217,219,220,221,227,251 -269,336,385,415 -``` - -### Snapchat -``` -36,37,39,40,44,76,96,127,140,146,151,155,161,206,253,269,270,289,312,314, -377,402,403,439,527 -``` - -### Two Sigma -``` -44,289,342,349,547 -``` - -### Indeed -``` -453,563 -``` - -### Mathworks -``` -500,566 -``` - -### Alibaba -``` -548,555 -``` - -### Baidu -``` -124,395,397,410,413,446,488,576 -``` - -### Zappos -``` -557 -``` - -### eBay -``` -416,572 -``` diff --git a/GLOSSARY.md b/GLOSSARY.md deleted file mode 100644 index 1af8c5573..000000000 --- a/GLOSSARY.md +++ /dev/null @@ -1,6 +0,0 @@ -## Term -Definition for this term - -## Another term -With it's definition, this can contain bold text -and all other kinds of inline markup ... \ No newline at end of file diff --git a/LANGS.md b/README-DOC.md similarity index 100% rename from LANGS.md rename to README-DOC.md diff --git a/README-List.md b/README-List.md deleted file mode 100644 index ccf6bfa4b..000000000 --- a/README-List.md +++ /dev/null @@ -1,38 +0,0 @@ -# 📝 awesome-golang-leetcode - -LeetCode of algorithms with golang solution(updating). - -
- -
- -## List - -| # | Title | Tag | Difficulty | -| :--- | :--------------------------------------- | :--------------------------------------- | :----------- | -| 1 | [Two Sum][0001] | Array, Hash Table | Easy | -| 7 | [Reverse Integer][0007] | Math | Easy | -| 9 | [Palindrome Number][0009] | Math |Easy | -| 13 | [Roman to Integer][0013] | Math, String | Easy | -| 14 | [Longest Common Prefix][0014] | Stack, String | Easy | -| 20 | [Valid Parentheses][0020] | Linked List | Easy | -| 21 | [Merge Two Sorted Lists][0021] |Linked List | Easy | -| 26 | [Remove Duplicates from Sorted Array][0026] | Array, Two Pointers | Easy | -| 27 | [Remove Element][0027] | Array, Two Pointers | Easy | - - - - - -[companies]: https://github.com/Blankj/awesome-java-leetcode/blob/master/Companies.md - -[0001]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0001.Two-Sum -[0007]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0007.Reverse-Integer -[0009]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0009.Palindrome-Number -[0013]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0013.Roman-to-Integer -[0014]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0014.Longest-Common-Prefix -[0020]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0020.Valid-Parentheses -[0021]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0021.Merge-Two-Sorted-Lists -[0026]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0026.Remove-Duplicates-from-Sorted-Array -[0027]: https://github.com/kylesliu/awesome-golang-algorithm/tree/master/src/0027.Remove-Element - diff --git a/SOLUTIONS.md b/SOLUTIONS.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/SUMMARY-LIST.md b/SUMMARY-LIST.md deleted file mode 100644 index f8f142d0a..000000000 --- a/SUMMARY-LIST.md +++ /dev/null @@ -1,43 +0,0 @@ -# SUMMARY-LIST - - -- Linked List - - [19. Remove Nth Node From End of List(删除从结尾数第n个结点)](https://leetcode.kyle.link/src/0019.Remove-Nth-Node-From-End-of-List/) - - [83. Remove Duplicates from Sorted List(删除链表中的重复元素)](https://leetcode.kyle.link/src/0083.Remove-Duplicates-from-Sorted-List/) - - [206. Reverse Linked List(反转链表)](https://leetcode.kyle.link/src/0206.Reverse-Linked-List/) - - [92. Reverse Linked List II(反正链表2)](https://leetcode.kyle.link/src/0092.Reverse-Linked-List-II/) - - [61. Rotate List(链表右移)](https://leetcode.kyle.link/src/0061.Rotate-List/) - - [143. Reorder List(链表右移2)](https://leetcode.com/problems/reorder-list) - - [21. Merge Two Sorted Lists(合并已排序的链表)](https://leetcode.kyle.link/src/0021.Merge-Two-Sorted-Lists/) - - [160. Intersection of Two Linked Lists(寻找链表的交汇点)](https://leetcode.kyle.link/src/0160.Intersection-of-Two-Linked-Lists/) - - [141. Linked List Cycle(判断链表是否存在环)](https://leetcode.kyle.link/src/0141.Linked-List-Cycle/) - - [147. Insertion Sort List(链表的插入排序)](https://leetcode.kyle.link/src/0147.Insertion-Sort-List/) - - [142. Linked List Cycle II(判断链表是否存在环2)](https://leetcode.kyle.link/src/0142.Linked-List-Cycle-II/) - - [148. Sort List(链表排序)](https://leetcode.kyle.link/src/0148.Sort-List/) - - [146. LRU Cache (LRU缓存)](https://leetcode.kyle.link/src/0146.LRU-Cache/) - -- Depth-first Search - -- Tree - -- Dynamic Programming - - [53. Maximum Subarray (求最大连续子序列长度)]() - - [300. Longest Increasing Subsequence ()]() - - [72. Edit Distance ()]() - - [121. Best Time to Buy and Sell Stock()]() - - [122. Best Time to Buy and Sell Stock II ()]() - - [123. Best Time to Buy and Sell Stock III ()]() - - [188. Best Time to Buy and Sell Stock IV ()]() - - [309. Best Time to Buy and Sell Stock with Cooldown ()]() - - [198. House Robber ()]() - - [213. House Robber II ()]() - - [312. Burst Balloons ()]() - - [96. Unique Binary Search Trees()]() - - [140. Word Break II()]() - - [10. Regular Expression Matching ()]() - - -- QUEUE/STACK - -- Hash - diff --git a/SUMMARY.md b/SUMMARY.md index 45f56c780..d39ee489b 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -1,6 +1,6 @@ # Table of contents -* [介绍](README.md) +* [介绍](README-DOC.md) ## 剑指 Offer diff --git a/book.json b/book.json deleted file mode 100644 index 5556f0525..000000000 --- a/book.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "root": "", - "title": "awesome-golang-leetcode", - "author": "Kyle Liu", - "description": "LeetCode 的 golang 题解", - "language": "en", - "gitbook" : "3.2.3", - "structure.readme": "README.md", - "structure.summary": "SUMMARY.md", - "structure.glossary": "GLOSSARY.md", - "structure.languages": "LANGS.md", - - "links": { - "sidebar": { - "Home": "https://github.com/kylesliu/awesome-golang-algorithm" - } - }, - "plugins": [ - "-search", - "github", - "advanced-emoji", - "flexible-alerts", - "favicon-plus", - "disqus", - "sitemap" - ], - - "pluginsConfig": { - "favicon": "assets/images/favicon.ico", - "appleTouchIconPrecomposed152": "path to appleTouchIconPrecomposed152.png", - "output": "book output path", - "github": { - "url": "https://github.com/kylesliu/awesome-golang-algorithm" - }, - "disqus": { - "shortName": "go-leetcode" - }, - "sitemap": { - "hostname": "https://leetcode.gin.sh/" - }, - "sharing": { - "weibo": true, - "facebook": true, - "twitter": true, - "google": false, - "instapaper": false, - "vk": false, - "all": [ - "facebook", "google", "twitter","weibo", "instapaper" - ] - }, - "flexible-alerts": { - "note": { - "label": "Hinweis" - }, - "tip": { - "label": "Tip" - }, - "warning": { - "label": "Warnung" - }, - "danger": { - "label": "Achtung" - } - } - } -}