Skip to content

Naturaldoc/kotlin-coding-puzzle

 
 

Repository files navigation

Kotlin coding puzzles

This repository contains a set of programming puzzles that meant to be solved using Kotlin language (hints, solutions and tests are here as well). Purpose of this repository is to help you to practice deliberately and develop strong problem-solving skills. This will help you become better programmer and improve you chance of getting new job, by passing whiteboard coding interview.

Puzzle structure

Each puzzle is located in separate package and it contains of 3 files (screen):

  • Puzzle.md - description of the task.
  • Puzzle.kt - empty method/class where puzzle should be solved. This file also contains a set of JUnit tests.
  • PuzzleSolution.kt - file that contains solutions.

Keep in mind that each puzzle will usually have more than one solution. Even simple puzzle like String reversal can be solved in 10 different ways. Usually, we compare various solutions using (Big O notation) to determine space/time complexity and we look at code readability.

How do I start?

  1. Checkout the and open the project
  2. Solve puzzle
  3. Run the tests

Let's solve some puzzles

Puzzles below are segregated by different difficulty. If you want to solve puzzles by problem type, please check this section.

Some puzzle may contain a reference to other puzzles that should be solved before to have better understanding of the problem. To succeed you need to practice often, repeat same puzzles multiple times and be persistent over time. Take your time before you take a look at the presented solution. Good luck!

New in Town

Apprentice

Warrior

Commander

References

Articles

Books

Video courses

More Coding

Websites

Coding problem challenges

Contribute

If you think something is incorrect, you have found a new puzzle, have a better solution or simply you want to add new puzzle please create PR or open a new issue.

Contributors

Follow me

avatar.png

Twitter | Medium | Linkedin

About

Kotlin coding puzzle and solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%