• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

igorwojda/kotlin-coding-challenges:

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

igorwojda/kotlin-coding-challenges

开源软件地址(OpenSource Url):

https://github.com/igorwojda/kotlin-coding-challenges

开源编程语言(OpenSource Language):

Kotlin 100.0%

开源软件介绍(OpenSource Introduction):

Kotlin coding challenges

This repository contains a set of programming challenges that are solved using the Kotlin language (hints, solutions tests and useful links are here as well). The purpose of this repository is to help you to practice coding and develop strong problem-solving skills. This will help you to become a better programmer and improve your chance of getting a new job by passing whiteboard coding interviews.

Challenge structure

Each challenge is located in separate package and it contains 3 main files (screen):

  • desc.md - the task description.
  • desc.kt - an empty method/class where challenge should be solved. This file also contains set of test and ocasionally helper methods. JUnit tests which verify that task was solved correctly.
  • solution.kt - a file containing one or more solutions.

Keep in mind that each challenge will usually have more than one solution. Even simple challenges 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. Install IntelliJ IDEA
  2. Import project by using IntelliJ IDEA menu: File | New | Project From Version Control | Git
  3. Choose a challenge and code the solution
  4. Run the tests to verify your solution

Let's solve some challenges

Challenges below are segregated by different difficulties. The repository also contains challenges grouped by problem type.

Some challenges may contain a reference to other challenges that should be solved before to have a better understanding of the problem. To succeed you need to practice often, repeat the same challenges 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 coding challenges

Challanges

  • GeeksForGeeks - large and nicely segregated set of problems.
  • HackerRank - large set of problems and additional interview problems for business.
  • TopCoder - platforms for competitive programming online.
  • Project Euler - more complex challenges, usually related to mathematics. The site already contains 600+ problems and a new code challenge is available very week or two. You will probably have to discuss the problem with the 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.
  • CoderByte - 200+ challenges, data structures / algorithms / company interview problems segregated by difficulty. Unfortunately most of them are 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 challenges is smaller than other websites, but you will still have plenty of problems to solve.
  • Spoj - list of programming challenges is smaller than other websites, but you will still have plenty of problems to solve.
  • Exercism - coding challenge website that offers 3100+ challenges spanning 52 different programming languages.

Game challanges

  • CodeWars - solve visuial challanges by writing code for the.
  • CodinGame - solve visuial challanges by writing code for the.

Video courses

Books

Websites

  • Hiring without whiteboards - listing of companies (or teams) that don't do "whiteboard" interviews.
  • VisuAlgo - visualizes data structures and algorithms through animations algorithms.
  • Data structures explained - description of various data structures.
  • Sorting algorithms animations - visually compares most popular sorting algorithms using animations.
  • Big-O Reference - summarizes the complexities in terms of space and time (Big-O) of the most important algorithms and operations in common data structures.
  • Big-O poster - time/space complexity poster to print ant put on the wall.
  • Big-O Cheat Sheet - covers the space and time Big-O complexities of common algorithms.

Coding interview repositories

Contribute

Feedback and new contributions are welcome whether it's through bug reports or new PRs. To add new coding puzzle just follow this guide and open PR.

Contributors

Author

Follow me

Follow me

License

MIT License

Copyright (c) 2019 Igor Wojda

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
jcf/vim-latex: Mirror of vim-latex发布时间:2022-07-09
下一篇:
stevengj/LaTeXStrings.jl: convenient input and display of LaTeX equation strings ...发布时间:2022-07-09
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap