Add solution for Challenge 3 by onomica#1219
Add solution for Challenge 3 by onomica#1219github-actions[bot] merged 3 commits intoRezaSi:mainfrom
Conversation
WalkthroughAdds a new Go program implementing Changes
Sequence Diagram(s)(Skipped — change does not introduce multi-component sequential interactions requiring visualization.) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@challenge-3/submissions/onomica/solution-template.go`:
- Around line 46-54: FindEmployeeByID returns &v where v is the range-loop copy,
so callers get a pointer to a copy instead of the actual slice element; change
the loop to iterate indices (e.g., for i := range m.Employees) or keep both
index and value and return &m.Employees[i] so the function returns a pointer to
the actual Employee in the Manager.Employees slice (refer to FindEmployeeByID,
Manager, Employees, Employee).
|
🎉 Auto-merged! This PR was automatically merged after 2 days with all checks passing. Thank you for your contribution, @onomica! |
Challenge 3 Solution
Submitted by: @onomica
Challenge: Challenge 3
Description
This PR contains my solution for Challenge 3.
Changes
challenge-3/submissions/onomica/solution-template.goTesting
Thank you for reviewing my submission! 🚀