A playground to sharpen my programming and problem solving skills via LeetCode.
- 792. Number of matching Subsequences
- 002. Add two numbers
- 003. Longest substring without repeats
- 005. Longest palindromic substring
- 006. Zigzag conversion
- 007. Reverse integer
- 236. Lowest common ancestor of two nodes in a binary tree
- 503. Next greater element II
formatter-maven-plugin is used for automated code formatting.
- Apply formatting rules:
mvn formatter:format
- Check formats:
mvn formatter:validate
Ideally actual exceptions should be thrown or JUnit tests should be used, instead of assertions.
How to enable Java assertions in IntelliJ IDE?
- Choose Run → Edit Configurations...
- Add
-ea
to the VM options box
Author: Ruifeng Ma (mrfflyer@gmail.com)
Email: mrfflyer@gmail.com