Skip to content

Add solution for Challenge 17 by miank1#1683

Merged
github-actions[bot] merged 2 commits into
RezaSi:mainfrom
miank1:challenge-17-miank1
May 15, 2026
Merged

Add solution for Challenge 17 by miank1#1683
github-actions[bot] merged 2 commits into
RezaSi:mainfrom
miank1:challenge-17-miank1

Conversation

@miank1
Copy link
Copy Markdown
Contributor

@miank1 miank1 commented May 15, 2026

Challenge 17 Solution

Submitted by: @miank1
Challenge: Challenge 17

Description

This PR contains my solution for Challenge 17.

Changes

  • Added solution file to challenge-17/submissions/miank1/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 May 15, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b6ae2e8d-ae6a-4668-9aa3-42829bff373f

📥 Commits

Reviewing files that changed from the base of the PR and between d78abc2 and 1076ed1.

📒 Files selected for processing (1)
  • challenge-17/submissions/miank1/solution-template.go

Walkthrough

This PR adds a complete solution for Challenge 17 in Go: a palindrome validator. The implementation consists of an IsPalindrome function that normalizes input to lowercase and alphanumerics, then performs two-pointer comparison, plus a main entry point that reads user input and reports the result.

Changes

Challenge 17 Palindrome Implementation

Layer / File(s) Summary
Palindrome checking logic
challenge-17/submissions/miank1/solution-template.go
IsPalindrome normalizes the input string to lowercase, filters out non-alphanumeric characters into a rune slice, and determines palindrome status by comparing characters from both ends inward.
Interactive main entry point
challenge-17/submissions/miank1/solution-template.go
main prompts the user for input, reads a line from stdin, calls IsPalindrome, and prints whether the input is a palindrome.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • RezaSi/go-interview-practice#1669: Adds the same Challenge 17 Go palindrome implementation pattern—an exported IsPalindrome that lowercases, filters alphanumerics, and checks via two-pointer comparison, plus a main that reads stdin and prints the result.
  • RezaSi/go-interview-practice#587: Introduces an identical palindrome solution in challenge-17/submissions/*/solution-template.go with IsPalindrome normalization logic and a main that reads from stdin.
  • RezaSi/go-interview-practice#1578: Implements the same IsPalindrome(s string) bool function using lowercase normalization, alphanumeric filtering, and two-pointer comparison in a separate submission directory.

Poem

A rabbit hopped through letters and digits so fine,
From "A man, a plan, a canal—Panama!" it signs,
Two pointers dance inward, meeting halfway true,
Is it backwards the same? Yes! Our palindrome flew! 🐰✨

🚥 Pre-merge checks | ✅ 4 | ❌ 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 (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding a solution for Challenge 17 by a specific user, which matches the PR's core objective.
Description check ✅ Passed The description is directly related to the changeset, providing context about the Challenge 17 solution submission and outlining what was added and tested.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.12.2)

level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies"

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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 e832369 into RezaSi:main May 15, 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, @miank1!

📊 Scoreboards and badges will be updated shortly.

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.

1 participant