Add 3 test cases to a solution (15 min, super easy)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 63/100
Research direction
Choose a solution file in the repository and read it to identify its inputs and expected outputs. Add 3 to 5 checks at the bottom, including an edge case, then run the file and confirm the checks pass. The issue does not name a specific solution, so choose one whose behavior is clear.
Written by the indexing model from the issue text.
Description
Help prove these solutions actually work
No test framework needed. A few simple checks at the bottom of the file are perfect.
Time: ~15 minutes | Level: Beginner
Task
- Pick one solution file (any language)
- Add 3 to 5 test cases at the bottom
- Include at least one edge case (empty input, zero, negatives)
Example (Python)
assert solve(2, 3) == 5
assert solve(0, 0) == 0
assert solve(-1, 1) == 0
Use your language's equivalent (console.assert, assert, a simple if, etc.). A great way to learn how to think about edge cases.
Open for everyone
This issue is open for everyone: beginners, experienced developers, students, and people who don't code at all. Any language, any level, no experience required. If you want to help, you are welcome here.
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:
First Contributions - github.com/firstcontributions/first-contributions
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.
- Dominant language
- Python
- Stars
- 3
- Forks
- 2
- Avg merge
- 3h 32m
- Merged PRs (30d)
- 21
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Huerte/algo-solutions-python
-
5-minutes all-levels beginner-friendly codewars documentation good first issue hackerrank hacktoberfest interview-prep leetcode no-code-needed open-source students
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Huerte/algo-solutions-python#189 ·
Maintainers usually reply within 1 day
-
15-minutes all-levels any-language beginner-friendly codewars good first issue hackerrank help wanted interview-prep leetcode open-source students testing
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Huerte/algo-solutions-python#188 ·
Maintainers usually reply within 1 day
-
15-minutes all-levels any-language beginner-friendly codewars design good first issue hackerrank hacktoberfest help wanted interview-prep leetcode no-code-needed open-source students
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Huerte/algo-solutions-python#187 ·
Maintainers usually reply within 1 day
-
30-minutes algorithm all-levels beginner-friendly codewars data-structures documentation dynamic-programming good first issue hackerrank hacktoberfest help wanted interview-prep leetcode no-code-needed open-source students
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Huerte/algo-solutions-python#186 ·
Maintainers usually reply within 1 day
-
5-minutes algorithm all-levels any-language beginner-friendly community documentation easy first-timers-only good first issue hacktoberfest help wanted learning no-code-needed open-source python students
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Huerte/algo-solutions-python#185 ·
Maintainers usually reply within 1 day
All issues in Huerte/algo-solutions-python
Similar issues
-
Remove the `pull_request_target` workflow before GitHub blocks itPossibly taken @jat255 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
IBM/mcp-context-forge#7483 ·
Maintainers usually reply within 2 days
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
[Bug Report]: OpenAI 辅助 API 连通性测试因输出上限仅 1 token 误报“未知错误”Possibly taken @fjfanjian claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Project-N-E-K-O/N.E.K.O#3640 ·
Maintainers usually reply within 1 day
-
author-page correction
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
acl-org/acl-anthology#10808 · 1 comment ·
Maintainers usually reply within 1 day