leetcode_contests / README.md
Nan-Do's picture
Update README.md
50aaa7b verified
---
dataset_info:
features:
- name: question_id
dtype: int64
- name: description
dtype: string
- name: code
dtype: string
- name: lang
dtype: string
- name: difficulty
dtype: string
splits:
- name: train
num_bytes: 332515333
num_examples: 144359
download_size: 55842172
dataset_size: 332515333
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
license: apache-2.0
task_categories:
- text2text-generation
- text-generation
language:
- en
tags:
- problem solving
- leetcode
- contests
- code
pretty_name: Leetcode's Contests
size_categories:
- 100K<n<1M
---
---
# Dataset Card for "leetcode_contests"
## Dataset Description
- **Homepage:** None
- **Repository:** https://huggingface.co/datasets/Nan-Do/leetcode_contests
- **Paper:** None
- **Leaderboard:** None
- **Point of Contact:** [@Nan-Do](https://github.com/Nan-Do)
### Dataset Summary
- The purpose of this dataset is to **provide a robust problem-solving foundation** for Large Language Models (LLMs).
- The dataset comprises **top accepted solutions** to **Leetcode's contests**.
- For each contest problem and language, up to **15 submissions** are chosen to be included in the dataset.
- The dataset has been **meticulously cleaned** to ensure **consistent formatting**, accuracy of the numerical
values included and the **uniqueness of the solutions**.
- Each submission is guaranteed to be both **valid** and **unique**.
- In total, there are **2006 unique problems** and **144,359 unique submissions** across **17 different programming languages**.
- **All contests** up to weekly contest 389 (March 17, 2024).
(**The dataset is not accessible to the public anymore, please do not contact me regarding its access.**)
### Languages
The problem descriptions are in English.
Here is a summary of the languages used for the submissions:
Programming Language | Total
:-----|:-----
cpp | 30755
java | 30651
python3 | 27858
python2 | 22903
javascript | 9025
golang | 7566
csharp | 7458
kotlin | 2632
rust | 1687
ruby | 846
scala | 784
c | 759
typescript | 641
swift | 525
php | 189
dart | 49
racket | 31
### Data Splits
There are no splits (Only training).
## Dataset Creation
Mar of 2024
### Curation Rationale
This dataset was created to improve the **problem-solving** capabilities of LLMs.
### Source Data
The source of the dataset is [Leetcode's contests](https://leetcode.com/contest/)
### Annotations
The dataset includes the following columns: **question_id, title, contest, number, description, code, lang, credit, and difficulty**.
- The **question_id** column indicates the ID of the question within this dataset.
- The **title** column contains the name of the problem.
- The **contest** column contains the contest in which the problem appeared.
- The **number** column indicates the number of the problem in the contest.
- The **description** column contains the markdown explanation for the problem.
- The **code** column contains the code that solves the question.
- The **lang** column indicates the language in which the solution is written.
- The **credit** column indicates the number of points given to the problem.
- The **difficulty** column indicates the difficulty level of the question (easy, medium, or hard).
### Licensing Information
Apache 2.0
## Citation
If you get access to the dataset find the dataset useful in your work, please consider citing it as:
```bibtex
@misc{tarin2024leetcode,
title={Leetcode Contests},
author={Fernando Tarin Morales},
year={2024},
publisher = {Hugging Face},
journal = {Hugging Face repository},
howpublished = {\url{https://huggingface.co/datasets/Nan-Do/leetcode_contests}}
}
```
Also if you like my work and you have any suggestion, comment or proposal, please contact me [here](mailto:[email protected])