Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shreckye/coursera-stanford-algorithms-solutions-kotlin

Solutions for Programming Assignments in Courses 1-4 of the Coursera Algorithms Specialization offered by Stanford written in Kotlin scripts
https://github.com/shreckye/coursera-stanford-algorithms-solutions-kotlin

algorithms coursera-algorithms coursera-algorithms-solutions coursera-algorithms-specialization kotlin kotlin-scripts stanford

Last synced: 5 days ago
JSON representation

Solutions for Programming Assignments in Courses 1-4 of the Coursera Algorithms Specialization offered by Stanford written in Kotlin scripts

Awesome Lists containing this project

README

        

# Coursera Stanford Algorithms Specialization Programming Assignment solutions in Kotlin
Solutions for Programming Assignments in Courses 1-4 of the [Coursera Algorithms Specialization](https://www.coursera.org/specializations/algorithms) offered by Stanford written in Kotlin scripts

## Coded up in the Kotlin style
Kotlin features such as [extensions](https://kotlinlang.org/docs/reference/extensions.html), [inline classes](https://kotlinlang.org/docs/reference/inline-classes.html), [operator overloading](https://kotlinlang.org/docs/reference/operator-overloading.html), [infix functions](https://kotlinlang.org/docs/reference/functions.html#infix-notation), [tail recursive functions](https://kotlinlang.org/docs/reference/functions.html#tail-recursive-functions), [scope functions](https://kotlinlang.org/docs/reference/scope-functions.html), and [collection operations](https://kotlinlang.org/docs/reference/collection-operations.html) based on extensions and functional programming are widely used in the code to enhance simplicity, efficiency, and readability, and to produce a proper blend of imperative programming, object oriented programming, and functional programming.

## Notices
1. Enable assertion for all scripts by adding the "-ea" VM option to detect potential bugs.
1. Increase the stack size with "-Xss" VM option for some scripts that cause `StackOverflowError`. Increase the heap size with "-Xmx" VM option for some scripts that cause `OutOfMemoryError`.
1. If you encounter compiling issues in IntelliJ IDEA, bring down the project bytecode version, the target JVM version, the Project language level, and the target platform in Preferences and Project Structure to 6 and 1.6.