1
- # Kotlin coding puzzles
1
+ # Kotlin coding challenges
2
2
3
- This repository contains a set of [ programming puzzles ] ( #lets-solve-some-puzzles ) that are solved using the
3
+ This repository contains a set of [ programming challenges ] ( #lets-solve-some-challenges ) that are solved using the
4
4
[ Kotlin] ( https://kotlinlang.org/ ) language (hints, solutions tests and [ useful links] ( #useful-links ) are here as well).
5
- The purpose of this repository is to help you to practice coding and develop strong problem-solving skills. This will help
6
- you to become a better programmer and improve your chance of getting a new job by passing
5
+ The purpose of this repository is to help you to practice coding and develop strong problem-solving skills. This will
6
+ help you to become a better programmer and improve your chance of getting a new job by passing
7
7
[ whiteboard coding] ( https://www.quora.com/What-is-whiteboard-coding ) interviews.
8
8
9
- ## Puzzle structure
9
+ ## Challenge structure
10
+
11
+ Each challenge is located in separate package and it contains 3 main
12
+ files ([ screen] ( ./misc/image/challenge-structure.png ) ):
10
13
11
- Each puzzle is located in separate package and it contains 3 main files ([ screen] ( ./misc/image/SampleTask.png ) ):
12
14
- ` desc.md ` - the task description.
13
- - ` desc.kt ` - an empty method/class where puzzle should be solved. This file also contains set of test and ocasionally helper methods.
15
+ - ` desc.kt ` - an empty method/class where challenge should be solved. This file also contains set of test and
16
+ ocasionally helper methods.
14
17
[ JUnit] ( https://junit.org/junit4/ ) tests which verify that task was solved correctly.
15
18
- ` solution.kt ` - a file containing one or more solutions.
16
19
17
- Keep in mind that each puzzle will usually have more than one solution. Even simple puzzles like
20
+ Keep in mind that each challenge will usually have more than one solution. Even simple challenges like
18
21
[ String reversal] ( src/test/kotlin/com/igorwojda/string/reverse/desc.md ) can be solved in
19
22
[ 10 different ways] ( https://eddmann.com/posts/ten-ways-to-reverse-a-string-in-javascript/ ) . Usually, we compare various
20
23
solutions using
@@ -25,17 +28,18 @@ determine space/time complexity and we look at code readability.
25
28
26
29
1 . Install [ IntelliJ IDEA] ( https://www.jetbrains.com/idea/ )
27
30
2 . Import project by using IntelliJ IDEA menu: ` File | New | Project From Version Control | Git `
28
- 3 . Choose a puzzle and code the [ solution] ( https://github.com/igorwojda/kotlin-coding-puzzle/wiki/Solving-coding-chalenges )
29
- 4 . [ Run the tests] ( https://github.com/igorwojda/kotlin-coding-puzzle/wiki/Running-tests ) to verify your solution
31
+ 3 . Choose a challenge and code
32
+ the [ solution] ( https://github.com/igorwojda/kotlin-coding-challenges/wiki/Solving-coding-chalenges )
33
+ 4 . [ Run the tests] ( https://github.com/igorwojda/kotlin-coding-challenges/wiki/Running-tests ) to verify your solution
30
34
31
- # Let's solve some puzzles
35
+ # Let's solve some challenges
32
36
33
- Puzzles below are segregated by different difficulties. The repository also contains puzzles grouped by
37
+ Challenges below are segregated by different difficulties. The repository also contains challenges grouped by
34
38
[ problem type] ( misc/desc.md ) .
35
39
36
- Some puzzles may contain a reference to other puzzles that should be solved before to have a better understanding of the
37
- problem. To succeed you need to practice often, repeat the same puzzles multiple times and be persistent over time. Take
38
- your time before you take a look at the presented solution. ** Good luck!**
40
+ Some challenges may contain a reference to other challenges that should be solved before to have a better understanding
41
+ of the problem. To succeed you need to practice often, repeat the same challenges multiple times and be persistent over
42
+ time. Take your time before you take a look at the presented solution. ** Good luck!**
39
43
40
44
** New in Town**
41
45
@@ -130,18 +134,18 @@ your time before you take a look at the presented solution. **Good luck!**
130
134
- [ Advent of code] ( https://adventofcode.com/2018/events ) - one month of various programing problems released daily at
131
135
the end of the year. Fortunately archive of past events is still there.
132
136
- [ Code Google Com Codejam] ( https://code.google.com/codejam/past-contests ) - Google Code Jam, calls on programmers
133
- around the world to solve challenging, algorithmic puzzles against the clock. They publish all the past problems on
137
+ around the world to solve challenging, algorithmic challenges against the clock. They publish all the past problems on
134
138
their website.
135
139
- [ CoderByte] ( https://coderbyte.com/challenges ) - 200+ challenges, data structures / algorithms / company interview
136
140
problems segregated by difficulty. Unfortunately most of them are only available for premium users. Premium gives you
137
141
access to premium step-by-step solutions and user solutions.
138
142
- [ CodeChef] ( https://www.codechef.com/problems/school ) - contains set of programming problems segregated by difficulty.
139
143
- [ LeetCode] ( https://leetcode.com/problemset/all ) - data structures / algorithms / company interview problems segregated
140
144
by difficulty.
141
- - [ Code Forces] ( http://codeforces.com/problemset ) - list of programming puzzles is smaller than other websites, but you
142
- will still have plenty of problems to solve.
143
- - [ Spoj] ( https://www.spoj.com/problems/classical ) - list of programming puzzles is smaller than other websites, but you
144
- will still have plenty of problems to solve.
145
+ - [ Code Forces] ( http://codeforces.com/problemset ) - list of programming challenges is smaller than other websites, but
146
+ you will still have plenty of problems to solve.
147
+ - [ Spoj] ( https://www.spoj.com/problems/classical ) - list of programming challenges is smaller than other websites, but
148
+ you will still have plenty of problems to solve.
145
149
146
150
## Video courses
147
151
@@ -182,7 +186,7 @@ your time before you take a look at the presented solution. **Good luck!**
182
186
# Contribute
183
187
184
188
Feedback and new contributions are welcome whether it's through bug reports or new PRs. To add new coding puzzle just
185
- follow this [ guide] ( https://github.com/igorwojda/kotlin-coding-puzzle /wiki/Adding-a-new-puzzle ) and open PR.
189
+ follow this [ guide] ( https://github.com/igorwojda/kotlin-coding-challenges /wiki/Adding-a-new-puzzle ) and open PR.
186
190
187
191
## Contributors
188
192
@@ -193,7 +197,7 @@ follow this [guide](https://github.com/igorwojda/kotlin-coding-puzzle/wiki/Addin
193
197
194
198
# Author
195
199
196
- [ ![ Follow me] ( https://github.com/igorwojda/kotlin-coding-puzzle /raw/main/misc/image/avatar.png )] ( https://twitter.com/igorwojda )
200
+ [ ![ Follow me] ( https://github.com/igorwojda/kotlin-coding-challenges /raw/main/misc/image/avatar.png )] ( https://twitter.com/igorwojda )
197
201
198
202
[ ![ Follow me] ( https://img.shields.io/twitter/follow/igorwojda?style=social )] ( https://twitter.com/igorwojda )
199
203
0 commit comments