Add a one-line docstring to any Python solution (5 min)
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 82/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
solutions/python ディレクトリを開き、メイン関数に docstring がないファイルを1つ選んでください。Issue の two_sum の例に配置方法が示されています。関数本体は、正確な一文を書くのに必要な分だけ読み、ロジックには手を加えないでください。完了の条件は、変更した各ファイルで def の直下に docstring の1行だけが追加され、他の編集がないことです。その後、pull request を作成します。
索引モデルが issue の本文から書いたものです。
説明
Most solution files have a function but no docstring. That makes it harder for others to understand what the function does at a glance. This issue is about adding exactly one line to help the next learner.
Time: ~5 minutes | Level: Complete beginner
What to do
- Pick any file in Python solutions where the main function has no docstring.
- Read the function and understand what it does.
- Add one short docstring immediately below the function definition describing its purpose.
- That's the whole change. No algorithm modifications needed.
Example:
Before:
def two_sum(nums, target):
...
After:
def two_sum(nums, target):
"""Return indices of two numbers that add up to target."""
...
Rules
- Add exactly one docstring to the function.
- Do not change the solution's code or logic.
- If you're unsure what the function does, don't guess.
- Open a Pull Request with your change.
You can claim as many files as you want, either in one PR or separate PRs.
Open for everyone
This issue is open for everyone: beginners, students, and experienced developers. You don't need to know how to solve algorithm problems. If you can read a function and describe what it does in one sentence, you can contribute.
How to contribute
- Fork this repo
- Clone your fork and create a new branch
- Make your change
- Commit, push, and open a Pull Request
New to open source? Start here before anything else:
Prefer video? Watch this: How to contribute on GitHub (YouTube)
If this repo helps you or you like where it is going, a star is a nice way to say thanks and helps other people find it. Entirely optional, and you do not need it to contribute.
- 主要言語
- Python
- スター
- 3
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Huerte/algo-solutions-python のほかの issue
-
5-minutes algorithm all-levels any-language beginner-friendly community documentation easy first-timers-only good first issue help wanted learning no-code-needed open-source python students
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
Huerte/algo-solutions-python#399 ·
-
15-minutes 5-minutes algorithm any-language beginner-friendly c cpp csharp easy go good first issue hacktoberfest help wanted java javascript kotlin python rust swift typescript
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Huerte/algo-solutions-python#397 ·
-
15-minutes algorithm all-levels any-language beginner-friendly codewars good first issue hackerrank help wanted interview-prep leetcode open-source students
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Huerte/algo-solutions-python#379 ·
-
15-minutes 5-minutes algorithm any-language beginner-friendly c cpp csharp easy go good first issue hacktoberfest help wanted java javascript kotlin python rust swift typescript
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
Huerte/algo-solutions-python#378 ·
-
30-minutes algorithm all-levels any-language codewars hackerrank help wanted interview-prep leetcode medium open-source refactor students
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Huerte/algo-solutions-python#377 ·
Huerte/algo-solutions-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vllm-project/vllm#69791 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Special topics rows on the Courses page have misaligned columns対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
BCStudentSoftwareDevTeam/cas#481 ·
メンテナーはふだん 7 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信