size_categories:1K<n<10K format:parquet modality:text library:datasets library:pandas library:mlcroissant library:polars region:us
---
dataset_info:
  features:
  - name: name
    dtype: string
  - name: tags
    sequence: string
  - name: rating
    dtype: int64
  - name: description
    dtype: string
  - name: editorial
    dtype: string
  splits:
  - name: train
    num_bytes: 12796798
    num_examples: 4101
  - name: validate
    num_bytes: 400287
    num_examples: 100
  - name: test
    num_bytes: 539448
    num_examples: 147
  download_size: 6738409
  dataset_size: 13736533
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validate
    path: data/validate-*
  - split: test
    path: data/test-*
---

# Competitive Programming Editorials Dataset

This dataset provides a collection of competitive programming problem editorials sourced from **Codeforces**. Each entry includes essential details about the problem, such as tags, difficulty rating, and a comprehensive editorial written in Markdown format for clear readability.

## Dataset Details

The dataset includes the following fields:

- **name**: The title or name of the problem.
- **tags**: Relevant tags associated with the problem, like algorithms, data structures, or specific concepts.
- **rating**: The difficulty rating of the problem, based on Codeforces’ rating system.
- **description**: A concise description of the problem.
- **editorial**: The cleaned and formatted editorial written in Markdown. These editorials provide step-by-step explanations and solutions to the problems.

### Source
The problems and editorials are sourced from:
- **[Codeforces](https://codeforces.com)**: A platform known for regular competitive programming contests and a diverse range of problem difficulty.

### Format
All editorials are written in **Markdown** for enhanced readability and easy integration with Markdown viewers or editors.

## Example Entry

```json
{
  "name": "1000_A. Codehorses T-shirts",
  "tags": ["greedy", "implementation"],
  "rating": 1200,
  "description": "Codehorses has just hosted the second Codehorses Cup. This year, the same as the previous one, organizers are giving T-shirts for the winners...",
  "editorial": "First, let us remove all coinciding entries of both lists. The most convenient way to do this is to use a `map` or `hashmap`, but it is not the only option..."
}
```

## Usage

This dataset can be used for fine-tuning LLM to solve competitive programming.

## License

Please refer to the dataset's licensing terms on the platform where it is hosted.

## Acknowledgments

A special thanks to the creators of Codeforces for their platform, which makes this resource possible. This dataset aims to provide clean, well-formatted editorials for educational purposes.

---