Skip to content

Add solution for Challenge 18 by Mxn-ptr#1259

Open
Mxn-ptr wants to merge 1 commit intoRezaSi:mainfrom
Mxn-ptr:challenge-18-Mxn-ptr
Open

Add solution for Challenge 18 by Mxn-ptr#1259
Mxn-ptr wants to merge 1 commit intoRezaSi:mainfrom
Mxn-ptr:challenge-18-Mxn-ptr

Conversation

@Mxn-ptr
Copy link

@Mxn-ptr Mxn-ptr commented Feb 3, 2026

Challenge 18 Solution

Submitted by: @Mxn-ptr
Challenge: Challenge 18

Description

This PR contains my solution for Challenge 18.

Changes

  • Added solution file to challenge-18/submissions/Mxn-ptr/solution-template.go

Testing

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

Thank you for reviewing my submission! 🚀

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 3, 2026

Walkthrough

A new Go source file is added implementing temperature conversion functions CelsiusToFahrenheit and FahrenheitToCelsius, with a rounding helper utility and example usage in main.

Changes

Cohort / File(s) Summary
Challenge 18 Solution
challenge-18/submissions/Mxn-ptr/solution-template.go
Adds temperature conversion functions with Celsius↔Fahrenheit conversion logic (F = C × 9/5 + 32 and inverse), a Round helper for decimal precision using math.Round and math.Pow10, and example main function demonstrating both conversions.

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 75.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 identifies the main change: adding a solution for Challenge 18 by a specific contributor (Mxn-ptr), which directly matches the changeset.
Description check ✅ Passed The description is directly related to the changeset, providing context about the challenge submission, the file location, and testing status. It clearly describes the purpose and contents of the PR.

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

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist.


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.

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