A comprehensive collection of solutions and algorithm templates for programming challenges from LeetCode, PAT (Programming Ability Test), and other coding platforms, and also some homemade utils.
This repository contains solutions and algorithm templates written by Hyperplasma to various programming problems, primarily implemented in:
- Java (mainly)
- Go
- JavaScript
- PHP
- C/C++
The solutions encompass problems from the following platforms:
- LeetCode
- Daily/Weekly/Biweekly Challenges
- Classic problem sets
- Database Problems
- PAT
- Doubao MarsCode
For more information on each problem set, please refer to info.md
in their respective directories.
- Cross-language algorithm templates
- Detailed problem solutions
- Multiple language implementations
- Daily updates
- Optimized solutions
- Pragmatic utils
The solution collection covers the following algorithmic categories:
- Array & String Manipulation
- Linked Lists
- Trees (Binary Trees, BST, N-ary Trees)
- Graphs
- Hash Tables
- Stacks & Queues
- Heaps
- Dynamic Programming
- Depth-First Search (DFS)
- Breadth-First Search (BFS)
- Binary Search
- Two Pointers
- Sliding Window
- Greedy Algorithms
- Backtracking
- Sorting & Searching
- Bit Manipulation
- Divide and Conquer
- Union Find
- Trie
- Segment Trees
- Mathematics & Number Theory
- System Design Problems
Each solution includes:
- Problem description
- Solution approach
- Code implementation
- Time & Space complexity
Tips for Use:
- Use the search function to find specific problems
- Check the commit history for recent updates
- Refer to
info.md
in each directory for additional details - For questions or improvements, feel free to open an issue
Feel free to create issues or PRs if you have better solutions!