Giter VIP home page Giter VIP logo

kotlin-coding-puzzle's Introduction

Kotlin coding puzzles

This repository contains a set of programming puzzles that are solved using Kotlin language (hints, solutions tests and useful links are here as well). Purpose of this repository is to help you to practice and develop strong problem-solving skills. This will help you to 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

Useful links

More codding challenges

  • GeeksForGeeks - large and nicely segregated set of problems.
  • HackerRank - large set of problems and additional interview problems for business.
  • Project euler - more complex challenges, usually related to mathematics. Site already contains 600+ problems and a new code challenge is available very week or two. You will probably have to discuss problem with community because solutions are not on the website.
  • Advent of code - one month of various programing problems released daily at the end of the year. Fortunately archive of past events is still there.
  • Code Google Com Codejam - Google Code Jam, calls on programmers around the world to solve challenging, algorithmic puzzles against the clock. They publish all the past problems on their website.
  • CoderByte - 200+ challenges, data structures / algorithms / company interview problems segregated by difficulty. Unfortunately most of them is only available for premium users. Premium gives you access to premium step-by-step solutions and user solutions.
  • CodeChef - contains set of programming problems segregated by difficulty.
  • LeetCode - data structures / algorithms / company interview problems segregated by difficulty.
  • Code Forces - list of programming puzzles is smaller than other websites, but you will still have plenty problems to solve.
  • Spoj - list of programming puzzles is smaller than other websites, but you will still have plenty problems to solve.

Video courses

Books

Websites

Coding interview repositories

Contribute

If you think something is sdfds sdf ds fsd fds fds fds fds ds dsincorrect, have a better solution, give feedback or simply you want to add new coding puzzle just create PR or open a new issue.

Contributors

Follow me

avatar.png

Twitter | Medium | Linkedin

kotlin-coding-puzzle's People

Contributors

igorwojda avatar mozano avatar yannisbarbakadze avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.