metadata
license: mit
task_categories:
- text-classification
- summarization
- text-generation
language:
- en
tags:
- code
pretty_name: leet-leet
size_categories:
- 1K<n<10K
LeetCode Scraper Dataset
This dataset contains information scraped from LeetCode, including problem details, metadata, and related files. It is designed to assist developers in analyzing LeetCode problems, generating insights, and building tools for competitive programming or educational purposes.
questions_deets.csv
- Contains detailed information about each problem, including problem descriptions, constraints, and examples.
- Columns:
questionFrontendId
: Unique problem ID.questionTitle
: Title of the problem.content
: HTML content of the problem description.difficulty
: Problem difficulty.topicTags
: Tags associated with the problem.codeDefinition
: Code templates for various programming languages.TitleSlug
: URL-friendly title for the problem. Construct the link this way: "https://leetcode.com/problems/{titleSlug}/description/"difficulty
,totalAccepted
,totalSubmission
,totalAcceptedRaw
,totalSubmissionRaw
,acRate
similarQuestions
: Questions simmilar to current question.mysqlSchemas
,category
,sampleTestCase
,metaData
,envInfo
.
This dataset is part of a broader collection of LeetCode-related datasets. It complements:
- LeetCode Problem Set – a lightweight dataset containing LeetCode problems along with titles, slugs, difficulty levels, and basic metadata (no content or solutions).
- LeetCode Problem Solutions – includes up to 100 of the most upvoted community solutions per problem, with full code, summaries, and metadata.
Note: New problems are added to the platform weekly. If you’d like the data refreshed or want more solutions per problem, feel free to reach out!
The scraper used to collect this data is open-sourced here: timetooth/leetcode_scraper. Give it a ⭐ if you find it helpful!