Leetcode in Kotlin
Kotlin command-line compiler is required to build the solutions. It can be installed from here manually or using Homebrew.
$ brew update
$ brew install kotlin
Compile the source code using Kotlin command-line compiler and then run the output jar using Java.
$ cd (folder)
$ kotlinc (solution).kt -include-runtime -d (solution).jar
$ java -jar (solution).jar