Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
- question-answering
|
| 6 |
+
- text-generation
|
| 7 |
+
- text2text-generation
|
| 8 |
+
language:
|
| 9 |
+
- en
|
| 10 |
+
tags:
|
| 11 |
+
- code
|
| 12 |
+
pretty_name: leet-leet
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100K<n<1M
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# LeetCode Solution Dataset
|
| 18 |
+
|
| 19 |
+
This dataset contains **community-contributed LeetCode solutions** scraped from public discussions and solution pages, enriched with metadata such as vote counts, author info, tags, and full code content. The goal is to make high-quality, peer-reviewed coding solutions programmatically accessible for research, analysis, educational use, or developer tooling.
|
| 20 |
+
|
| 21 |
+
## Column Descriptions
|
| 22 |
+
|
| 23 |
+
| Column Name | Type | Description |
|
| 24 |
+
|------------------|-------------|-----------------------------------------------------------------------------|
|
| 25 |
+
| `question_slug` | `string` | The unique slug of the LeetCode question |
|
| 26 |
+
| `title` | `string` | Title of the submitted solution |
|
| 27 |
+
| `slug` | `string` | URL-safe identifier for the solution (can be used to reconstruct URL) |
|
| 28 |
+
| `summary` | `string` | Short description or intro snippet of the solution |
|
| 29 |
+
| `author` | `string` | Username of the contributor |
|
| 30 |
+
| `certification` | `string` | LeetCode’s certification level for the author |
|
| 31 |
+
| `created_at` | `timestamp` | When the solution was originally posted |
|
| 32 |
+
| `updated_at` | `timestamp` | When the solution was last modified |
|
| 33 |
+
| `hit_count` | `int` | Number of views the solution has received |
|
| 34 |
+
| `has_video` | `boolean` | Whether the solution includes a video explanation |
|
| 35 |
+
| `content` | `string` | The full markdown content including code blocks |
|
| 36 |
+
| `upvotes` | `int` | Total number of upvotes |
|
| 37 |
+
| `downvotes` | `int` | Total number of downvotes |
|
| 38 |
+
| `tags` | `list[str]` | List of tags (e.g. algorithm type, difficulty, company, etc.) |
|
| 39 |
+
| `comments` | `int` | Number of top-level comments on the solution |
|
| 40 |
+
|
| 41 |
+
`question_slug`: Construct the link this way: "https://leetcode.com/problems/{question_slug}/description/"
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
This is a data is part of a wider family of datasets, it includes a dataset with detailed description and other statistics about each problem and another one with 100 solutions sorted by "Most-Voted".
|
| 46 |
+
PS. questions are uploaded every week on the platform if you would like me to update the data or need more solutions for each problem, let me know.
|
| 47 |
+
Code used for scrapping can be accessed here: "https://github.com/timetooth/leetcode_scraper.git" star the repo if you like it.
|