The dataset viewer is not available for this dataset.
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
YAML Metadata Warning:The task_categories "text2text-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
LeetCode Solution Dataset
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.
Column Descriptions
| Column Name | Type | Description |
|---|---|---|
question_slug |
string |
The unique slug of the LeetCode question |
title |
string |
Title of the submitted solution |
slug |
string |
URL-safe identifier for the solution (can be used to reconstruct URL) |
summary |
string |
Short description or intro snippet of the solution |
author |
string |
Username of the contributor |
certification |
string |
LeetCode’s certification level for the author |
created_at |
timestamp |
When the solution was originally posted |
updated_at |
timestamp |
When the solution was last modified |
hit_count |
int |
Number of views the solution has received |
has_video |
boolean |
Whether the solution includes a video explanation |
content |
string |
The full markdown content including code blocks |
upvotes |
int |
Total number of upvotes |
downvotes |
int |
Total number of downvotes |
tags |
list[str] |
List of tags (e.g. algorithm type, difficulty, company, etc.) |
comments |
int |
Number of top-level comments on the solution |
question_slug: Construct the link this way: "https://leetcode.com/problems/{question_slug}/description/"
This dataset is part of a broader collection of LeetCode-related resources. It complements:
- LeetCode Problem Detailed – includes full problem descriptions, metadata, and statistics for each LeetCode question.
- LeetCode Problem Set – a lightweight list of problems with slugs, titles, difficulty levels, and basic stats (without descriptions or solutions). Note: New questions and solutions are added weekly. If you'd like updates or more in-depth coverage for specific problems, feel free to reach out!
The scraper used to collect this dataset is available here: timetooth/leetcode_scraper. Drop a ⭐ if you find it useful!
- Downloads last month
- 116