Skip to content

Add solution for Challenge 1 by Shalu-Kushwaha#1680

Merged
github-actions[bot] merged 2 commits into
RezaSi:mainfrom
Shalu-Kushwaha:challenge-1-Shalu-Kushwaha
May 14, 2026
Merged

Add solution for Challenge 1 by Shalu-Kushwaha#1680
github-actions[bot] merged 2 commits into
RezaSi:mainfrom
Shalu-Kushwaha:challenge-1-Shalu-Kushwaha

Conversation

@Shalu-Kushwaha
Copy link
Copy Markdown
Contributor

Challenge 1 Solution

Submitted by: @Shalu-Kushwaha
Challenge: Challenge 1

Description

This PR contains my solution for Challenge 1.

Changes

  • Added solution file to challenge-1/submissions/Shalu-Kushwaha/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 14, 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: 05ce57c7-0c7a-45e3-8863-7c8420a22d94

📥 Commits

Reviewing files that changed from the base of the PR and between 7321387 and 568304d.

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

Walkthrough

This PR adds a complete Go solution for Challenge 1 that reads two comma-separated integers from standard input, validates the input, computes their sum using a dedicated Sum function, and prints the result.

Changes

Challenge 1 Sum Solution

Layer / File(s) Summary
Input parsing and sum computation
challenge-1/submissions/Shalu-Kushwaha/solution-template.go
Complete implementation of main function reading two integers via fmt.Scanf with error handling, and Sum function returning a + b.

Sequence Diagram

sequenceDiagram
  participant stdin
  participant main
  participant Sum
  participant stdout
  stdin->>main: two comma-separated integers
  main->>main: fmt.Scanf parses input
  alt Parse error
    main->>stdout: print error message
  else Parse success
    main->>Sum: call Sum(a, b)
    Sum->>Sum: compute a + b
    Sum->>main: return result
    main->>stdout: print sum result
  end
Loading

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • RezaSi/go-interview-practice#1673: Both PRs add the same Challenge 1 Go solution structure with main parsing two integers and a Sum(a, b int) int function returning a + b.
  • RezaSi/go-interview-practice#877: Both PRs implement the identical Challenge 1 solution with fmt.Scanf input parsing and a Sum function computing a + b.
  • RezaSi/go-interview-practice#1596: Both PRs add the same Challenge 1 Go solution structure with input parsing via fmt.Scanf and a Sum(a, b int) int implementation.

Poem

🐰 A rabbit hops through integer gates,
Two numbers parsed, the sum awaits,
Scanf reads what the input provides,
Sum adds and the answer arrives,
Challenge one complete—hoorah, what delight! ✨

🚥 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 and concisely describes the main change: adding a Challenge 1 solution by the specified author.
Description check ✅ Passed The description is directly related to the changeset, providing context about the Challenge 1 submission and clearly stating the added solution file.
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 c4d7d71 into RezaSi:main May 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, @Shalu-Kushwaha!

📊 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