Skip to content

Add solution for Challenge 2 by Falasefemi2#1231

Merged
github-actions[bot] merged 2 commits intoRezaSi:mainfrom
Falasefemi2:challenge-2-Falasefemi2
Apr 14, 2026
Merged

Add solution for Challenge 2 by Falasefemi2#1231
github-actions[bot] merged 2 commits intoRezaSi:mainfrom
Falasefemi2:challenge-2-Falasefemi2

Conversation

@Falasefemi2
Copy link
Copy Markdown
Contributor

Challenge 2 Solution

Submitted by: @Falasefemi2
Challenge: Challenge 2

Description

This PR contains my solution for Challenge 2.

Changes

  • Added solution file to challenge-2/submissions/Falasefemi2/solution-template.go

Testing

  • Solution passes all test cases
  • Code follows Go best practices

Thank you for reviewing my submission! 🚀

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 29, 2026

Walkthrough

This PR adds a new Go program that implements a string reversal solution. It includes a ReverseString function that converts input to runes, iterates in reverse order, and reconstructs the string using a strings.Builder, along with a main function that reads a line from stdin and outputs its reversal.

Changes

Cohort / File(s) Summary
String Reversal Solution
challenge-2/submissions/Falasefemi2/solution-template.go
Introduces ReverseString(s string) string function that reverses strings using rune slices and strings.Builder; includes main function that reads stdin, reverses the line, and prints the result.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: adding a Challenge 2 solution by Falasefemi2, which matches the PR's primary objective.
Description check ✅ Passed The description is related to the changeset, providing context about the Challenge 2 submission, the file location, and testing claims that align with the code changes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot merged commit 9d2dcbb into RezaSi:main Apr 14, 2026
6 checks passed
@github-actions
Copy link
Copy Markdown

🎉 Auto-merged!

This PR was automatically merged after 2 days with all checks passing.

Thank you for your contribution, @Falasefemi2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants