You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.


Dataset Card for "leetcode_contests"

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).

    (If you are interested in accessing the dataset please contact me here)

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

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

Downloads last month
42