A comprehensive collection of Data Structures and Algorithms solutions from competitive programming platforms, featuring automated synchronization and AI-powered complexity analysis.
This repository maintains an organized archive of solutions from multiple competitive programming platforms. Solutions from LeetCode and Codeforces are automatically synchronized daily via GitHub Actions, with complexity analysis powered by Google Gemini AI. Additional practice problems and manual submissions are organized in separate directories.
Automated Platforms: LeetCode • Codeforces
Manual Collections: ic-mern-b5 • Other Platforms
- Automated Synchronization: Daily updates from platform APIs
- Complexity Analysis: AI-generated time and space complexity with explanations
- Performance Metrics: Runtime and memory usage tracking with visualizations
- Comprehensive Documentation: Auto-generated README files for each problem
- Version Control: Complete solution history and evolution tracking
- Organized Structure: Solutions grouped by topic or course
- Learning Resources: Additional practice problems and exercises
- Custom Implementations: Experimental and learning-focused code
.
├── leetcode/ # LeetCode solutions (automated)
│ ├── README.md # Statistics and problem index
│ └── [problem]/ # Individual problem directories
│ ├── README.md # Problem details and analysis
│ ├── solution.* # Solution implementation
│ └── performance.png # Performance visualization
│
├── codeforces/ # Codeforces solutions (automated)
│ ├── README.md # Statistics and problem index
│ └── [problem]/ # Individual problem directories
│
├── ic-mern-b5/ # Additional practice problems
│ └── [solutions]/ # Manual submissions
│
├── [other-platforms]/ # Other coding challenges
│
├── scripts/ # Automation scripts
│ ├── sync_leetcode.py
│ └── sync_codeforces.py
│
└── .github/workflows/ # CI/CD configuration
├── leetcode-sync.yml
└── codeforces-sync.yml
- Python 3.8+
- Git
# Clone the repository
git clone https://github.com/GourangaDasSamrat/DSA.git
cd DSA
# Install dependencies (for local development)
pip install -r requirements.txtNavigate to platform-specific directories:
# Automated platforms
cd leetcode # LeetCode solutions (auto-synced)
cd codeforces # Codeforces solutions (auto-synced)
# Manual collections
cd ic-mern-b5 # Additional practice problemsAutomated directories contain a README.md with problem statistics and a complete index of solutions. Manual collections are organized by topic or course structure.
- Trigger: GitHub Actions scheduled workflows (daily at 00:00 UTC)
- Fetch: Retrieve accepted submissions via platform APIs
- Process: Extract solution code and metadata
- Analyze: Generate complexity analysis using Gemini AI
- Visualize: Create performance graphs with Matplotlib
- Document: Generate comprehensive README files
- Commit: Push updates to repository
Automation requires the following GitHub Secrets:
LeetCode:
LEETCODE_SESSION: Session cookie from authenticated LeetCode sessionLEETCODE_CSRF_TOKEN: CSRF token from LeetCode
Codeforces:
CODEFORCES_HANDLE: Codeforces username
Shared:
GEMINI_API_KEY: Google Gemini API key for complexity analysis
Languages: Python, C++, Java, JavaScript
Automation: GitHub Actions, Python
APIs: LeetCode API, Codeforces API, Google Gemini AI
Visualization: Matplotlib
Version Control: Git
Data Structures: Arrays, Linked Lists, Stacks, Queues, Trees, Graphs, Hash Tables, Heaps, Tries
Algorithms: Dynamic Programming, Greedy, Backtracking, Divide & Conquer, Graph Algorithms, Sorting, Searching
Advanced Topics: Bit Manipulation, Number Theory, Computational Geometry, String Algorithms
This is a personal learning repository, but suggestions and improvements are welcome.
- Fork the repository
- Create a feature branch (
git checkout -b feature/improvement) - Commit your changes (
git commit -am 'Add improvement') - Push to the branch (
git push origin feature/improvement) - Open a Pull Request
Please ensure:
- Code follows existing style conventions
- Documentation is updated accordingly
- All tests pass (if applicable)
This project is licensed under the MIT License - see the LICENSE file for details.
Gouranga Das
- GitHub: @GourangaDasSamrat
- LeetCode: @gourangadassamrat
- Codeforces: @Gouranga_Khulna
- LeetCode for providing the platform and API
- Codeforces for the competitive programming platform
- Google Gemini AI for complexity analysis capabilities
- GitHub Actions for automation infrastructure
Note: This repository is automatically updated. Solutions reflect personal approaches and may not represent optimal solutions for all cases.