datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
LeetCodeDataset
LeetCodeDataset
LeetCodeDataset is a dataset consists of Python leetcode problems that can be used for LLM training and evaluation.
💻 GitHub
📄 LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs
📄 Policy Filtration for RLHF to Mitigate Noise in Reward Models
tw-leetcode
Dataset Card for tw-leetcode
A curated Traditional Chinese LeetCode solution dataset with high-efficiency answers (Beats 100%), structured explanation in "Top Concept → Step Implement → Complexity Analysis" style, updated daily.
Dataset Details
Dataset Description
tw-leetcode 是一個針對 LeetCode 題目的繁體中文資料集,內容包含高效能程式解法、完整的解題思路,以及時間與空間複雜度分析。每份題解都經由人工清洗與優化,並依循「Top Concept → Step Implement → Complexity Explanation」的結構撰寫,方便機器學習模型或人類讀者理解程式邏輯的推理過程。
本資料集適合作為:… See the full description on the dataset page: https://huggingface.co/datasets/twinkle-ai/tw-leetcode.leetcode-complete
Complete LeetCode Problems Dataset
This dataset contains a comprehensive collection of LeetCode problems (including premium) with AI-generated solutions in JSONL format. It is regularly updated to include new problems as they are added to LeetCode.
Splits
The dataset is divided into the following splits:
train: Contains approximately 80% of the problems for training
validation: Contains approximately 10% of the problems for validation
test: Contains approximately… See the full description on the dataset page: https://huggingface.co/datasets/whiskwhite/leetcode-complete.LeetCode-Contest
LeetCode Contest Benchmark
A new benchmark for evaluating Code LLMs proposed by DeepSeek-Coder, which consists of the latest algorithm problems of different difficulties.
Usage
git clone https://github.com/deepseek-ai/DeepSeek-Coder.git
cd Evaluation/LeetCode
# Set the model or path here
MODEL="deepseek-ai/deepseek-coder-7b-instruct"
python vllm_inference.py --model_name_or_path $MODEL --saved_path output/20240121-Jul.deepseek-coder-7b-instruct.jsonl
python… See the full description on the dataset page: https://huggingface.co/datasets/TechxGenus/LeetCode-Contest.leetcode_problem_solutionThis dataset contains: problems and solutions in Leetcode, crawled from: https://github.com/AnasImloul/Leetcode-Solutions
The format of data:
title: title of the problem
algo_input: the description of the problem
solution_py: the solution in Python
solution_js: the solution in Js
solution_java: the solution in Java
solution_c: the solution in C
leetcode-python-dataset
leetcode-python-dataset
Code for building and publishing the justindal/leetcode-python-dataset dataset on Hugging Face.
Merges two open-source LeetCode datasets into a unified schema with consistent formatting, field normalisation, and solution validation.
Dataset
Split
Rows
Source
train
2856
newfacade + greengerong
valid
310
slug-group split from train
test
228
newfacade only
Schema
default config (training)
Each row is a… See the full description on the dataset page: https://huggingface.co/datasets/justindal/leetcode-python-dataset.LeetCode-Contest-zh
LeetCode Contest Benchmark
A new benchmark for evaluating Code LLMs proposed by DeepSeek-Coder, which consists of the latest algorithm problems of different difficulties.
Usage
git clone https://github.com/deepseek-ai/DeepSeek-Coder.git
cd Evaluation/LeetCode
# Set the model or path here
MODEL="deepseek-ai/deepseek-coder-7b-instruct"
python vllm_inference.py --model_name_or_path $MODEL --saved_path output/20240121-Jul.deepseek-coder-7b-instruct.jsonl
python… See the full description on the dataset page: https://huggingface.co/datasets/TechxGenus/LeetCode-Contest-zh.leetcode-python-distill
leetcode-python-distill
Distill version of the justindal/leetcode-python-dataset dataset.
Includes thinking traces from Deepseek 3.2
Sources
newfacade/LeetCodeDataset (Apache 2.0)
greengerong/leetcode (MIT)
Citation
newfacade/LeetCodeDataset:
@misc{xia2025leetcodedatasettemporaldatasetrobust,
title={LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs},
author={Yunhui Xia and Wei Shen and Yan Wang and Jason… See the full description on the dataset page: https://huggingface.co/datasets/justindal/leetcode-python-distill.leetcode-performance
Dataset card for Leetcode Performance Dataset
cleaned-humaneval-leetcode
Cleaned HumanEval-LeetCode Dataset
Dataset Description
这是一个经过预处理的 LeetCode 代码生成数据集,源自 ShwStone/humaneval-leetcode。
Data Preprocessing (清洗逻辑)
为了直接用于大模型 SFT 训练,原始数据经过了以下清洗:
Type Hinting: 根据代码内容,自动注入了 typing (List, Dict, etc.) 和 collections (deque, defaultdict) 的引用。
Class Removal: 移除了 class Solution 外壳,将代码转换为纯函数形式。
Refactoring: 移除了 self 参数,修复了缩进。
Docstring Repair: 修复了 doctest 中的函数调用名称。
Data Structure
task_id: 题目唯一标识符。
prompt:… See the full description on the dataset page: https://huggingface.co/datasets/Zedekiah557/cleaned-humaneval-leetcode.LeetCode-Contest
LeetCode-Contest
Contains 80 questions of LeetCode weekly and bi-weekly contests released after March 2024.
Each question contains an average of 644 test cases, as well as programming solutions in Python language collected from the official LeetCode website.
Requirements
pip install sortedcontainers
Dataset Structure
Dataset Fields
index: The problem numbers in the dataset, from 0 to 79.
title: The title of the problem.
title_slug: The title name… See the full description on the dataset page: https://huggingface.co/datasets/lbaf23/LeetCode-Contest.LeetCodeDataset
LeetCodeDataset
LeetCodeDataset is a dataset consists of Python leetcode problems that can be used for LLM training and evaluation.
💻 GitHub
📄 LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs
📄 Policy Filtration for RLHF to Mitigate Noise in Reward Models
LeetCodeDataset
LeetCodeDataset
LeetCodeDataset is a dataset consists of Python leetcode problems that can be used for LLM training and evaluation.
💻 GitHub
📄 LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs
📄 Policy Filtration for RLHF to Mitigate Noise in Reward Models
leetcode-top-interview-questions
LeetCode Top Interview Questions Dataset
This dataset contains a curated collection of LeetCode interview questions, suitable for LLM fine-tuning and analysis.
Dataset Description
Dataset Summary
Total problems: 97
Difficulty levels: easy, medium, hard
Data Fields
id: Unique identifier for each problem
title: The title of the LeetCode problem
difficulty: Problem difficulty (Easy/Medium/Hard)
topic: The main topic/category of the problem
content:… See the full description on the dataset page: https://huggingface.co/datasets/bhanukaAGH/leetcode-top-interview-questions.LeetCodeDataset
LeetCodeDataset
LeetCodeDataset is a dataset consists of Python leetcode problems that can be used for LLM training and evaluation.
💻 GitHub
📄 LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs
📄 Policy Filtration for RLHF to Mitigate Noise in Reward Models
