/LeetCodePlayground

A playground to sharpen my programming skills via LeetCode.

Primary LanguageJava

LeetCodePlayground

A playground to sharpen my programming and problem solving skills via LeetCode.

List of problems

Easy

Medium

Dev notes

Automatic code formatting

formatter-maven-plugin is used for automated code formatting.

  • Apply formatting rules: mvn formatter:format
  • Check formats: mvn formatter:validate

Run programs with Java assertions enabled

Ideally actual exceptions should be thrown or JUnit tests should be used, instead of assertions.

How to enable Java assertions in IntelliJ IDE?

  1. Choose Run → Edit Configurations...
  2. Add -ea to the VM options box

Contact

Author: Ruifeng Ma (mrfflyer@gmail.com)

Email: mrfflyer@gmail.com