Coding practice problems on LeetCode and LaiCode
A collection of algorithm and data structure solutions implemented in Java 11, built with Maven.
coding-practice/
├── coollime/ # Maven project
│ ├── src/
│ │ ├── main/java/ # Solution implementations
│ │ └── test/java/ # Unit tests
│ └── pom.xml # Maven configuration
├── docs/ # Documentation for each algorithm
└── scripts/ # Git hooks setup scripts
- Java 11 or higher
- Maven 3.6+
- Clone the repository
- Install git hooks (optional but recommended):
./scripts/setup-git-hooks.sh
# Build the project
cd coollime && mvn clean install
# Run tests
mvn test
# Format code
mvn spotless:apply
# Check code quality
mvn verifyThis project uses the following Maven plugins for code quality:
-
Spotless - Code formatting (Google Java Format, AOSP style)
-
Checkstyle - Code style enforcement (Google checks)
-
SpotBugs - Static analysis for bug detection
-
Completed:
- Sorting Algorithms
- Binary Search
- Recursion
- Queue & Stack
- Linked List
- Binary Tree
-
- In-order Traversal of Binary Tree
- Pre-order Traversal of Binary Tree
- Post-order Traversal of Binary Tree
- Check if Binary Tree is Balanced
- Symmetric Binary Tree
- Tweaked Identical Binary Trees
- Is Binary Search Tree or Not
- Get Keys in Binary Search Tree in Given Range
- Binary Tree Path Sum to Target I
- Search in Binary Search Tree
- Insert in Binary Search Tree