Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs #7

Merged
merged 4 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,024 changes: 1,012 additions & 1,012 deletions README.md

Large diffs are not rendered by default.

11 changes: 3 additions & 8 deletions leetcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,14 +744,9 @@ def update_readme_table() -> None:
break

file.write("\n")
file.write(
"| № | Title | Solution | Difficulty | Time " "| Space | Tags | Notes |\n"
)
file.write(
"| - | ----- | -------- | ---------- | ---- |" " ---- | ----- | ----- |\n"
)
file.write("|№|Title|Code|Difficulty|Time|Space|Tags|Notes|\n")
file.write("|-|-----|:--:|----------|:--:|:---:|----|-----|\n")

problems.sort(key=lambda x: int(x["ID"]), reverse=True)
colors = get_colors(saturation=0.6, value=0.5)
for problem in problems:
task_id = problem["ID"]
Expand All @@ -775,7 +770,7 @@ def update_readme_table() -> None:
f"| [C++](./solutions/{slug}/solution.hpp) "
f"| {difficulty_badge} "
f"| {time} "
f"| {space}"
f"| {space} "
f"| {' '.join(tags)} "
f"| {notes} |\n"
)
Expand Down
Loading
Loading