Add Number Spiral (CSES 1071) solution with explanation and test cases
Description This PR adds a C++ solution for the CSES problem: "Number Spiral" (Problem ID: 1071)
- Problem Link: https://cses.fi/problemset/task/1071/
- Includes detailed explanation, complexity analysis, and test cases
- Code follows clean structure and uses clear comments
- Self-contained with main() function for demonstration
Folder Structure Placed under: CPP/patterns/Pattern/NumberSpiral_CSES1071.cpp
Highlights
- O(1) time complexity per query
- Well-documented logic with descriptive comments
- Includes edge cases and example test cases with expected outputs
Test Cases Includes two test cases within main() showing sample input/output.
Hacktoberfest This PR is made for Hacktoberfest 2025.
๐ Welcome to Hacktoberfest 2025, @Aditya12604! ๐
Thank you for your first contribution to our DSA repository! Here's what happens next:
๐ Automatic Checks
- โ Code Validation: Passed
- ๐งช Compilation Tests: Passed
๐ Next Steps
๐ฏ Great job! Your code compiled successfully. Maintainers @Karanjot786 and @Pradeepsingh61 will review your PR soon.
๐ What You Get
- ๐ Hacktoberfest Credit: This PR counts toward your 6 PR goal for exclusive T-shirt + Tree!
- ๐ Hall of Fame: You'll be featured in our contributors list
- ๐ Learning: Code review feedback from experienced developers
๐ก Tips for Success
- Follow our Contributing Guidelines
- Add comments explaining your algorithm
- Include time/space complexity analysis
- Test your code before submitting
Welcome to the community! ๐
๐ค Automated PR Status
๐ Code Validation
โ Passed - File naming and structure look good!
๐งช Compilation Tests
โ Passed - All code compiles successfully!
๐ Overall Status
๐ Ready for Review - Your PR has passed all automated checks! ๐ฅ Maintainers have been notified for review.
This comment was generated automatically. Checks will re-run when you push new commits.