-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.jinja
26 lines (22 loc) · 1.11 KB
/
readme.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# LCTM
### Thanks
* [leetcode 经典题目的解析](https://github.com/azl397985856/leetcode)
* [LeetCode 刷题攻略](https://github.com/youngyangyang04/leetcode-master)
* [算法模板](https://github.com/greyireland/algorithm-pattern)
### Summary
||Go|Python|Rust|Java|
|:---:|:---:|:---:|:---:|:---:|
{% for difficulty in ['EASY', 'MEDIUM', 'HARD', 'TOTAL'] -%}
|{{difficulty}}|{{summary[Language.GO][difficulty]}}|{{summary[Language.PYTHON][difficulty]}}|{{summary[Language.RUST][difficulty]}}|{{summary[Language.JAVA][difficulty]}}|
{% endfor %}
### Problems
| # | Title | Solutions | Difficulty |
|:---:|:---:|:---:|:---:|
{% for q in questions -%}
{% set id_dir = '{:04d}'.format(q.id_) -%}
{% set solutions = [] -%}
{% for k in q.solution|sort(attribute='value') -%}
{{ solutions.append('[{}]({}/{}/{})'.format(k, path, id_dir, q.solution[k])) or '' -}}
{% endfor -%}
|[{{q.id_}}]({{path}}/{{id_dir}})|[{{q.title}}](https://leetcode.com/problems/{{q.title_slug}}/) [{{q.title_cn}}](https://leetcode-cn.com/problems/{{q.title_slug}}/)|{{solutions|join(" ")}}|{{q.difficulty}}|
{% endfor %}