Skip to content

Commit ec98ce5

Browse files
committed
update
1 parent 50cf621 commit ec98ce5

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

generate.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Notice:
66
// 注意这个 Cookie 要取 https://leetcode.com/api/problems/algorithms/ 下的
77
// 而不是 https://leetcode.com/ 下的
8-
var Cookie = "OUTFOX_SEARCH_USER_ID_NCOO=1270182585.150294; LEETCODE_SESSION=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImhhbnppY2hpIiwiX2F1dGhfdXNlcl9pZCI6IjIwNzA3NCIsInRpbWVzdGFtcCI6IjIwMTctMDEtMDMgMTQ6NTg6MjIuMTUxOTcxKzAwOjAwIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJpZCI6MjA3MDc0LCJfc2Vzc2lvbl9leHBpcnkiOjAsIl9hdXRoX3VzZXJfaGFzaCI6IjY3NzMyMjQzZjBmOGMyZmUwNWEwMGQyZWM3YTc2MGNiOGNhZjdjYjYiLCJlbWFpbCI6ImJpZ2JpZ3N1bnJpc2VAZm94bWFpbC5jb20ifQ.gGlzOUA0NxrfUYkvC8erEvcUTJYp32v2-rMujgO9vrQ; express.sid=s%3AuAx1lTlxg2OTvH1If4gvyZUpScHCQg42.L8TvyU2du93TkKd4KxDB7%2Bl6r%2FFR%2F%2FSBEZYyxBouiAw; csrftoken=kpvx6n4pFNFcDkYX5vfXYr83Zdz8cX0JV28iv3TjdfhPdwzClUPzkZCkqJBhPsIx; _gat=1; _ga=GA1.2.474225388.1483455439; __atuvc=26%7C2%2C7%7C3%2C137%7C4%2C8%7C5%2C42%7C6; __atuvs=589c27ef8a852166001"
8+
var Cookie = "OUTFOX_SEARCH_USER_ID_NCOO=1270182585.150294; LEETCODE_SESSION=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImhhbnppY2hpIiwidXNlcl9zbHVnIjoiaGFuemljaGkiLCJfYXV0aF91c2VyX2lkIjoiMjA3MDc0IiwidGltZXN0YW1wIjoiMjAxNy0wMi0xNiAxMTo0MToxOS45MTI2NjcrMDA6MDAiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsImlkIjoyMDcwNzQsIl9zZXNzaW9uX2V4cGlyeSI6MCwiX2F1dGhfdXNlcl9oYXNoIjoiNjc3MzIyNDNmMGY4YzJmZTA1YTAwZDJlYzdhNzYwY2I4Y2FmN2NiNiIsImVtYWlsIjoiYmlnYmlnc3VucmlzZUBmb3htYWlsLmNvbSJ9.Howj_ZPQs9IAE22zfV4Ly_KwPZzD4w5W2-Sz_wp1Bbs; express.sid=s%3AuAx1lTlxg2OTvH1If4gvyZUpScHCQg42.L8TvyU2du93TkKd4KxDB7%2Bl6r%2FFR%2F%2FSBEZYyxBouiAw; csrftoken=bmPSY3AtNuo4iKpQ5KLfU0ElDX7AYka5iVQ8WgxNsJbepIdruoSvkQBfutFOXHXB; _ga=GA1.2.474225388.1483455439; __atuvc=8%7C5%2C43%7C6%2C23%7C7%2C0%7C8%2C23%7C9; __atuvs=58b68ccb38902096002"
99
var superagent = require("superagent");
1010
var cheerio = require("cheerio");
1111
var fs = require("fs");
@@ -105,6 +105,9 @@ function dealWithFile() {
105105
} else if (~fileName.indexOf("cpp")) {
106106
p.language = "C++";
107107
p.sourceCode = encodeURI(baseNetSrc + p.title + '/' + fileName);
108+
} else if (~fileName.indexOf("py")) {
109+
p.language = "Python";
110+
p.sourceCode = encodeURI(baseNetSrc + p.title + '/' + fileName);
108111
}
109112
});
110113
});

readme.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Leetcode Solutions in JavaScript
2-
Update time: Thu Feb 09 2017 16:34:10 GMT+0800 (中国标准时间)
2+
Update time: Wed Mar 01 2017 17:29:40 GMT+0800 (中国标准时间)
33

4-
I have solved **319 / 477** problems while **85** problems are still locked.
4+
I have solved **325 / 490** problems while **85** problems are still locked.
55

66
If you have any question, please give me an [issue](https://github.com/hanzichi/leetcode/issues).
77

@@ -11,13 +11,25 @@ If you are loving solving leetcode problems in JavaScript, please contact me to
1111

1212
| # | Title | Source Code | Explanation | Difficulty |
1313
|:---:|:---:|:---:|:---:|:---:|
14+
| 530 | [Minimum Absolute Difference in BST](https://leetcode.com/problems/minimum-absolute-difference-in-bst/) | | | Easy |
15+
| 529 | [Minesweeper](https://leetcode.com/problems/minesweeper/) | | | Medium |
16+
| 526 | [Beautiful Arrangement](https://leetcode.com/problems/beautiful-arrangement/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Beautiful%20Arrangement/beautiful-arrangement.js) | | Medium |
17+
| 525 | [Contiguous Array](https://leetcode.com/problems/contiguous-array/) | | | Medium |
18+
| 524 | [Longest Word in Dictionary through Deleting](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/) | | | Medium |
19+
| 523 | [Continuous Subarray Sum](https://leetcode.com/problems/continuous-subarray-sum/) | [Python](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Continuous%20Subarray%20Sum/continuous-subarray-sum.py) | [Explanation](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Continuous%20Subarray%20Sum/README.md) | Medium |
20+
| 520 | [Detect Capital](https://leetcode.com/problems/detect-capital/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Detect%20Capital/detect-capital.js) | | Easy |
21+
| 517 | [Super Washing Machines](https://leetcode.com/problems/super-washing-machines/) | | | Hard |
22+
| 516 | [Longest Palindromic Subsequence](https://leetcode.com/problems/longest-palindromic-subsequence/) | | | Medium |
23+
| 515 | [Find Largest Value in Each Tree Row](https://leetcode.com/problems/find-largest-value-in-each-tree-row/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Find%20Largest%20Value%20in%20Each%20Tree%20Row/find-largest-value-in-each-tree-row.js) | | Medium |
24+
| 513 | [Find Bottom Left Tree Value](https://leetcode.com/problems/find-bottom-left-tree-value/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Find%20Bottom%20Left%20Tree%20Value/find-bottom-left-tree-value.js) | | Medium |
1425
| 512 | [Price Query System](https://leetcode.com/problems/price-query-system/) | | | Easy |
1526
| 511 | [String Lengths Average and 95th Percentile](https://leetcode.com/problems/string-lengths-average-and-95th-percentile/) | | | Easy |
1627
| 510 | [Design Logging](https://leetcode.com/problems/design-logging/) | | | Easy |
1728
| 509 | [Points in Intervals](https://leetcode.com/problems/points-in-intervals/) | | | Easy |
1829
| 508 | [Most Frequent Subtree Sum](https://leetcode.com/problems/most-frequent-subtree-sum/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Most%20Frequent%20Subtree%20Sum/most-frequent-subtree-sum.js) | | Medium |
1930
| 506 | [Relative Ranks](https://leetcode.com/problems/relative-ranks/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Relative%20Ranks/relative-ranks.js) | | Easy |
2031
| 505 | [The Maze II](https://leetcode.com/problems/the-maze-ii/) | :blue_book: | | Medium |
32+
| 504 | [Base 7](https://leetcode.com/problems/base-7/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Base%207/base-7.js) | | Easy |
2133
| 503 | [Next Greater Element II](https://leetcode.com/problems/next-greater-element-ii/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Next%20Greater%20Element%20II/diagonal-traverse.js) | | Medium |
2234
| 502 | [IPO](https://leetcode.com/problems/ipo/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/IPO/ipo.js) | | Hard |
2335
| 501 | [Find Mode in Binary Search Tree](https://leetcode.com/problems/find-mode-in-binary-search-tree/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Find%20Mode%20in%20Binary%20Search%20Tree/find-mode-in-binary-search-tree.js) | | Easy |
@@ -27,6 +39,7 @@ If you are loving solving leetcode problems in JavaScript, please contact me to
2739
| 496 | [Next Greater Element I](https://leetcode.com/problems/next-greater-element-i/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Next%20Greater%20Element%20I/next-greater-element-i.js) | | Easy |
2840
| 495 | [Teemo Attacking](https://leetcode.com/problems/teemo-attacking/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Teemo%20Attacking/teemo-attacking.js) | | Medium |
2941
| 494 | [Target Sum](https://leetcode.com/problems/target-sum/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Target%20Sum/dfs-solution.js) | [Explanation](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Target%20Sum/README.md) | Medium |
42+
| 493 | [Reverse Pairs](https://leetcode.com/problems/reverse-pairs/) | | | Hard |
3043
| 492 | [Construct the Rectangle](https://leetcode.com/problems/construct-the-rectangle/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Construct%20the%20Rectangle/construct-the-rectangle.js) | | Easy |
3144
| 491 | [Increasing Subsequences](https://leetcode.com/problems/increasing-subsequences/) | [JavaScript](https://github.com/hanzichi/leetcode/blob/master/Algorithms/Increasing%20Subsequences/use-set.js) | | Medium |
3245
| 490 | [The Maze](https://leetcode.com/problems/the-maze/) | :blue_book: | | Medium |

0 commit comments

Comments
 (0)