数据集:

mhhmm/leetcode-solutions-python

许可:

lgpl
中文

All credits belong to https://www.kaggle.com/datasets/erichartford/leetcode-solutions

I collected only python solutions:

id: <number>
code_with_data:
<
  # Slug
  # Title
  # Difficulty
  # Content
  Code Answer in Python
  # Explanation
>
code_only: < Code Answer in Python >
code_with_problem: <
  # Content
  Code
>
explanation_only: < Explanation >

I'm using this for code generation and code summarization so the data will have the format like above