Solutions for Cracking the Coding Interview 6th Edition by Gayle Laakmann McDowell written in Kotlin.
You can find the descriptions of the problems in the book.
The solutions to the problems try to be idiomatic Kotlin and some of them have alternative solutions written. Feel free to raise an issue for any comment or advice you have, it will be highly appreciate it. Tests for some solutions can be found in src/test/kotlin.
- Arrays and Strings
- Linked Lists
- Stacks and Queues
- Trees and Graphs
- Bit Manipulation
- Insertion
- Binary to String
- Flip Bit to Win
- Next Number
- Debugger (No coding question, see textbook.)
- Conversion
- Pairwise Swap