✅ Codeforces - https://codeforces.com/
✅ CodeChef - https://www.codechef.com/
✅ LeetCode - https://leetcode.com/
❌ NO Generic/GFG problems - Must include valid problem link from above platforms
Programs/
├── C++/ ← Add .cpp files here
├── Python/ ← Add .py files here
└── Java/ ← Add .java files here
- Find a problem from Codeforces, CodeChef, or LeetCode
- Pick your language folder (C++, Python, or Java)
- Create your solution file (e.g.,
MergeSort.cpp) - Use the template below with valid problem link
- Test with multiple cases
- Submit PR
- Wait 24 hours after merge for contributor badge!
/*
Problem: [Problem Name]
Platform: [Codeforces/CodeChef/LeetCode]
Problem Code: [Problem Code/Number]
Difficulty: [Easy/Medium/Hard]
Link: [Direct Problem URL]
Problem Statement:
[Description]
Approach:
[Your approach]
Time Complexity: O(?)
Space Complexity: O(?)
Contributor: YourGitHubUsername
*/
#include <bits/stdc++.h>
using namespace std;
// Your solution here
int main() {
// Test cases
return 0;
}"""
Problem: [Problem Name]
Platform: [Codeforces/CodeChef/LeetCode]
Problem Code: [Problem Code/Number]
Difficulty: [Easy/Medium/Hard]
Link: [Direct Problem URL]
Problem Statement:
[Description]
Approach:
[Your approach]
Time Complexity: O(?)
Space Complexity: O(?)
Contributor: YourGitHubUsername
"""
def solution():
# Your solution here
pass
if __name__ == "__main__":
# Test cases
pass/*
Problem: [Problem Name]
Platform: [Codeforces/CodeChef/LeetCode]
Problem Code: [Problem Code/Number]
Difficulty: [Easy/Medium/Hard]
Link: [Direct Problem URL]
Problem Statement:
[Description]
Approach:
[Your approach]
Time Complexity: O(?)
Space Complexity: O(?)
Contributor: YourGitHubUsername
*/
public class Solution {
// Your solution here
public static void main(String[] args) {
// Test cases
}
}- Use PascalCase:
TwoSum.cpp,BinarySearch.py,MergeSort.java - Be descriptive: Name should reflect the problem
- Match problem name: Use official problem name when possible
✅ Must Have:
- Problem statement
- Problem link
- Your approach explanation
- Clean, commented code
- Multiple test cases
- Time & space complexity
- Your GitHub username
❌ Don't:
- Copy-paste without understanding
- Skip test cases
- Forget complexity analysis
- Leave out your username
- ✅ Within 24 hours of PR merge
- ✅ Automatically in Contributors section
- ✅ Requires git email to match GitHub account
git config user.email # Should match GitHub email
git config user.name # Your GitHub username- Verify GitHub email is confirmed
- Check git commit email matches
- Ensure you added
**Contributor:** YourUsernamein your code - Wait 24 hours after merge
- Two Sum
- Palindrome Check
- Fibonacci Number
- Binary Search
- Longest Common Subsequence
- Graph BFS Traversal
- Dynamic Programming problems
- Codeforces ✅ ACCEPTED
- CodeChef ✅ ACCEPTED
- LeetCode ✅ ACCEPTED
Note: Only problems from above platforms are accepted. Generic/GFG problems will be rejected.
- ❌ Using Generic/GFG problems (Must be from Codeforces/CodeChef/LeetCode)
- ❌ Missing problem link or invalid link
- ❌ Putting solution in wrong language folder
- ❌ Not including test cases
- ❌ Missing complexity analysis
- ❌ Forgetting to add username
- ❌ Not testing code before PR
- ❌ Using incorrect file naming (use PascalCase!)
- ❌ Missing problem code/number in header
- ✅ Check Leaderboard
- ✅ Watch for contributor badge (24 hours)
- ✅ Consider adding solutions in other languages
- ✅ Help review other PRs
- ✅ Share your achievement on social media!
- 📖 Read full CONTRIBUTING.md
- 💬 Open an issue with questions
- 👀 Look at existing solutions for reference
- 🤝 Join discussions in PRs
Pro Tip: Start with an easy problem in your comfort language, then try implementing the same problem in other languages to learn different approaches!
Happy Coding! 🎯