Skip to content

Conversation

@Adityakumar37
Copy link
Contributor

✅ Checklist

Please ensure your PR meets these requirements:

Code Quality

  • [ ✅] Solution follows the required template format
  • [✅ ] Code is clean and well-commented
  • Variable names are descriptive
  • [ ✅] Proper error handling for edge cases

Testing

  • [ ✅] Solution passes all CSES test cases
  • [ ✅] Tested with custom edge cases
  • [ ✅] Handles large input constraints efficiently
  • [ ✅] No runtime errors or timeouts

Documentation

  • [ ]✅ Added solution to appropriate category folder
  • [ ✅] File name follows naming convention (snake_case)
  • [ ✅] Added brief comment explaining the approach
  • [ ✅] Updated any relevant documentation if needed

Style Guide

  • [ ✅] Uses required headers (#include <bits/stdc++.h>)
  • Includes fast I/O optimization
  • Uses appropriate data types (long long for large numbers)
  • Follows competitive programming best practices

🏷️ Type of Change

  • 🐛 Bug fix (fixes an existing solution)
  • ✨ New problem solution
  • 📚 Documentation improvement
  • 🔧 Code optimization/refactoring
  • [ ✅] 🎃 Hacktoberfest contribution

🧪 Testing Details

Describe how you tested your solution:

Test Cases Used:

Input: 
Expected Output: 
Actual Output: 

📸 Screenshots (if applicable)

Add screenshots of successful submissions or any relevant visuals.

📎 Additional Notes

Any additional information, considerations, or context for reviewers:


For Maintainers:

  • Code review completed
  • Solution verified on CSES judge
  • Documentation updated if needed
  • Labels applied appropriately

@Adityakumar37
Copy link
Contributor Author

Input: [3, 2, 7, 10]

Expected Output: 13

Actual Output: 13

@ks-iitjmu ks-iitjmu added enhancement New feature or request good first issue Good for newcomers hacktoberfest Issues/PRs for Hacktoberfest participation hacktoberfest-accepted Approved PRs for Hacktoberfest hacktoberfest_2025 Hacktoberfest 2025 specific contributions medium Medium difficulty problems category: dp Dynamic programming problems labels Oct 26, 2025
@ks-iitjmu ks-iitjmu linked an issue Oct 26, 2025 that may be closed by this pull request
3 tasks
@ks-iitjmu ks-iitjmu merged commit 5c7a056 into ks-iitjmu:main Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: dp Dynamic programming problems enhancement New feature or request good first issue Good for newcomers hacktoberfest Issues/PRs for Hacktoberfest participation hacktoberfest_2025 Hacktoberfest 2025 specific contributions hacktoberfest-accepted Approved PRs for Hacktoberfest medium Medium difficulty problems

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NEW] Add solution for [Maximum Sum of Non-Adjacent Elements]

2 participants