Datasets:
File size: 1,151 Bytes
79e5554 43134c9 1aa9e02 79e5554 43134c9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | ---
license: mit
task_categories:
- text-generation
language:
- en
tags:
- code
- python
- leetcode
- algorithms
dataset_info:
features:
- name: slug
dtype: string
- name: solution_id
dtype: string
- name: primary_algorithm
dtype: string
- name: verified
dtype: bool
- name: messages
list:
- name: role
dtype: string
- name: content
dtype: string
splits:
- name: train
num_bytes: 3515696
num_examples: 2522
download_size: 3368124
dataset_size: 3515696
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
---
# LeetCode Code-Gen Dataset — Python
Problem statement + examples + required algorithm/technique -> Python solution.
2517 rows. Sourced from doocs/leetcode.
Every row execution-verified against the problem's own examples.
## Fields
- `slug`: LeetCode problem slug
- `solution_id`: unique id, problem + approach index + language
- `primary_algorithm`: normalized algorithm/technique label
- `verified`: true/false for Python (execution-checked), null for other languages
- `messages`: chat-format (system/user/assistant), ready for SFT
|