feat(palindrome): add C solution
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start by reading the existing solutions in problems/palindrome and the repository's run.py test entry point. Add problems/palindrome/solution.c following the requested input, normalization, comparison, and output behavior. Done when python3 run.py palindrome passes all test cases.
Written by the indexing model from the issue text.
Description
Description
Under the Contributing section of the README:
"- Add a solution in a language a problem doesn't have yet (
solution.rs,solution.c, ...)."
Currently, problems/palindrome has solutions in C++, JavaScript, and Python, but does not have a C solution (solution.c).
Proposed Solution
Add problems/palindrome/solution.c that:
- Reads a line of input from
stdin. - Filters out punctuation/spaces and normalizes characters to lowercase using standard library functions (
isalnum,tolower). - Checks if the string reads the same forwards and backwards.
- Prints
trueorfalseto match the expected format. - Passes all test cases via
python3 run.py palindrome.
- Dominant language
- Python
- Stars
- 1
- Forks
- 6
- Avg merge
- 22h 23m
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
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 techcsispit/code-corner
-
Test runner reports success when no solutions are executedPossibly taken @vivek-3728 claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
techcsispit/code-corner#53 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
prime/solution.java doesn't compile: public class PrimeCheck in solution.java, README requires Solution.java with a Solution classPossibly taken @tanujb03 claimed this 10 days ago. Openbug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 82/100
techcsispit/code-corner#35 ·
Maintainers usually reply within 1 day
-
feat(binary-search): add JavaScript solutionPossibly taken @aadiitya2007 claimed this today. Openfeature
techcsispit/code-corner#56 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
feat(roman-numerals): add C++ solutionPossibly taken @aadiitya2007 claimed this today. Openfeature
techcsispit/code-corner#54 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Failed compilations always report 0.000 secondsPossibly taken @Nik-2208 claimed this 7 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
techcsispit/code-corner#37 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in techcsispit/code-corner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
changelog investigate
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ramnes/notion-sdk-py#423 ·
-
type-bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day