Skip to content

Contains all my working solutions in C#/Java/Python for puzzles on https://www.codingame.com/.

License

Notifications You must be signed in to change notification settings

pathosDev/CodinGame-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

CodinGame


CodinGame Solutions

Introduction

In this reposority you will find my working solutions for puzzles on the platform https://www.codingame.com/. In the table below you can see which puzzles I already completed.

Info: It is not my intention to write the solutions as short as possible! I just want to write my code understandable and clean even when it makes the actual code longer.

Completed Puzzles

No. Puzzle Name State Difficulty Languages
1 1010(1) ❌ Not Completed Medium
2 1x1x1 Rubik's cube movements ❌ Not Completed Easy
3 2.5D maze ❌ Not Completed Medium
4 2048 scores ❌ Not Completed Medium
5 2x2x2 Rubik's cube movements ❌ Not Completed Medium
6 7-segment display ❌ Not Completed Hard
7 Add'em Up ✔️ Completed Easy C#, Java, Python
8 Advanced Tree ❌ Not Completed Medium
9 Alternative vote ❌ Not Completed Hard
10 Anagrams ❌ Not Completed Hard
11 Ancestors & Descendants ❌ Not Completed Medium
12 ANEO Sponsored Puzzle ❌ Not Completed Medium
13 Apple tree ❌ Not Completed Hard
14 Army ants ❌ Not Completed Medium
15 ASCII Art ✔️ Completed Easy C#, Java, Python
16 ASCII ART: Glass Stacking ❌ Not Completed Medium
17 Ascii Graph ❌ Not Completed Medium
18 A-star excercise ❌ Not Completed Medium
19 Bag of Balls ❌ Not Completed Medium
20 Balanced ternary computer: encode ✔️ Completed Easy C#, Java, Python
21 Bank Robbers ✔️ Completed Easy C#, Java, Python
22 Bender - Episode 1 ❌ Not Completed Medium
23 Bender - Episode 2 ❌ Not Completed Hard
24 Bender - Episode 3 ❌ Not Completed Hard
25 Binary neural network - Part 1 ❌ Not Completed Very Hard
26 Binary neural network - Part 2 ❌ Not Completed Very Hard
27 Binary Permutations ❌ Not Completed Hard
28 Bingo! ❌ Not Completed Medium
29 Boggle ❌ Not Completed Hard
30 Box of Cigars ❌ Not Completed Medium
31 Brackets, Enhanced Edition ❌ Not Completed Medium
32 Brackets, Extended Edition ❌ Not Completed Medium
33 Brackets, extreme edition. ❌ Not Completed Easy
34 Brackets, Ultimate Edition ❌ Not Completed Medium
35 Breakout ❌ Not Completed Hard
36 Brick in the Wall ✔️ Completed Easy C#, Java, Python
37 Bruce Lee ❌ Not Completed Medium
38 Bulgarian solitaire ❌ Not Completed Medium
39 Bulk Email Generator ✔️ Completed Easy C#, Java, Python
40 Bulls and Cows ❌ Not Completed Very Hard
41 Bust speeding vehicles ❌ Not Completed Medium
42 Candies ❌ Not Completed Hard
43 Cards castle ❌ Not Completed Medium
44 Carmichael numbers ❌ Not Completed Easy
45 Castle Siege ❌ Not Completed Hard
46 CG Chat interpreter - Part 1 ❌ Not Completed Very Hard
47 CGFunge interpreter ❌ Not Completed Medium
48 CGS minifier ❌ Not Completed Medium
49 CGX Formatter ❌ Not Completed Hard
50 Cheat Solving ❌ Not Completed Hard
51 Chemical Equation Balancing ❌ Not Completed Very Hard
52 Chess cavalry ❌ Not Completed Hard
53 Chess moves on FEN position ❌ Not Completed Hard
54 Chuck Norris ✔️ Completed Easy C#, Java, Python
55 Code your own Automaton2000, step 1 ❌ Not Completed Hard
56 CodinDice ❌ Not Completed Very Hard
57 Completed Mahjong Hands ❌ Not Completed Very Hard
58 Connect four ❌ Not Completed Hard
59 Conway Sequence ❌ Not Completed Medium
60 Count of Primes in a number grid ❌ Not Completed Medium
61 Counting Squares on Pegs ❌ Not Completed Medium
62 Cross the lines ❌ Not Completed Very Hard
63 Cryptarithm ❌ Not Completed Hard
64 Cubax Folding ❌ Not Completed Very Hard
65 Darts ❌ Not Completed Easy
66 DDCG Mapper ❌ Not Completed Medium
67 Dead men's shot ✔️ Completed Easy C#, Java, Python
68 Defibrillators ✔️ Completed Easy C#, Java, Python
69 De-FizzBuzzer ❌ Not Completed Medium
70 Depot organization ❌ Not Completed Medium
71 Dice probability calculator ❌ Not Completed Medium
72 Digit sum successor ❌ Not Completed Medium
73 Disks intersection ❌ Not Completed Hard
74 Disordered First Contact ❌ Not Completed Easy
75 Divide the factorial ❌ Not Completed Very Hard
76 Divine! ❌ Not Completed Medium
77 Dominoes Path ❌ Not Completed Medium
78 Dominoes solver ❌ Not Completed Hard
79 Don't Panic - Episode 1 ❌ Not Completed Medium
80 Don't Panic - Episode 2 ❌ Not Completed Hard
81 Drawing Polygons ❌ Not Completed Hard
82 Dumbbells solver ❌ Not Completed Hard
83 Dungeon Designer ❌ Not Completed Very Hard
84 Dwars standing on the shoulders of giants ❌ Not Completed Medium
85 Egyptian multiplication ❌ Not Completed Hard
86 Einstein's riddle solver ❌ Not Completed Hard
87 Electrical grid ❌ Not Completed Hard
88 Elementary cellular automaton ❌ Not Completed Medium
89 Elevator ❌ Not Completed Hard
90 Encryption/Decryption of Enigma Machine ❌ Not Completed Easy
91 Enigma - 3 rotors without plugboard ❌ Not Completed Medium
92 Erdös Number ❌ Not Completed Hard
93 Execution Circle ❌ Not Completed Hard
94 Expand the polynomial ❌ Not Completed Easy
95 Factorial vs Exponential ❌ Not Completed Hard
96 Factorials of primes decomposition ❌ Not Completed Hard
97 Fill the square! ❌ Not Completed Very Hard
98 Find the replacement ❌ Not Completed Medium
99 Flood fill Example ❌ Not Completed Medium
100 Flood the World ❌ Not Completed Very Hard
101 Folding Paper ❌ Not Completed Medium
102 Format string validation ❌ Not Completed Hard
103 Fractal Carpet ❌ Not Completed Hard
104 Game of life ❌ Not Completed Medium
105 Genome Sequencing ❌ Not Completed Hard
106 Ghost Legs ✔️ Completed Easy C#, Java, Python
107 Google Interview - The Two Egg Problem ❌ Not Completed Hard
108 Gravity ❌ Not Completed Medium
109 Gravity Centrifuge ❌ Not Completed Medium
110 Gravity Centrifuge Tuning ❌ Not Completed Medium
111 Gravity Tumbler ✔️ Completed Easy C#, Java, Python
112 Guessing n Cheating ✔️ Completed Easy C#, Java, Python
113 Hangman ❌ Not Completed Hard
114 Hanoi tower ❌ Not Completed Hard
115 Harmless Rooks ❌ Not Completed Hard
116 Haunted Manor ❌ Not Completed Very Hard
117 Heart of the City ❌ Not Completed Very Hard
118 Hidden word ❌ Not Completed Medium
119 Highest truncated pyramid ❌ Not Completed Hard
120 High-rise buildings ❌ Not Completed Very Hard
121 Hill Notation and Hill Order ❌ Not Completed Hard
122 Hit the road ❌ Not Completed Hard
123 Hitori solver ❌ Not Completed Very Hard
124 Horn-SAT solver ❌ Not Completed Hard
125 Horse-hyperracing Hyperduals ❌ Not Completed Medium
126 Horse-racing Duals ✔️ Completed Easy C#, Java, Python
127 Horse-racing Hyperduals ❌ Not Completed Easy
128 Hourglass ❌ Not Completed Very Hard
129 How time flies ✔️ Completed Easy C#, Java, Python
130 HTML table cell split ❌ Not Completed Medium
131 Inertia ride ❌ Not Completed Hard
132 ISBN Check digit ✔️ Completed Easy C#, Java, Python
133 Jack Silver: The Casino ❌ Not Completed Easy
134 Kaprekar's routine ❌ Not Completed Medium
135 KGood ❌ Not Completed Hard
136 Kolakoski Sequence ❌ Not Completed Hard
137 Langton's ant ❌ Not Completed Medium
138 Laser and mirrors ❌ Not Completed Hard
139 Levenshtein distance ❌ Not Completed Hard
140 Locked in gear ❌ Not Completed Medium
141 Longest Palindrome ❌ Not Completed Very Hard
142 Lumen ✔️ Completed Easy C#, Java, Python
143 Magic count of numbers ❌ Not Completed Hard
144 Magic Square ❌ Not Completed Medium
145 Magic stones ❌ Not Completed Medium
146 Mars Lander - Episode 1 ✔️ Completed Easy C#, Java, Python
147 Mars Lander - Episode 2 ❌ Not Completed Medium
148 Mars Lander - Episode 3 ❌ Not Completed Very Hard
149 Max Rect ❌ Not Completed Hard
150 Maximum sub-sequence ❌ Not Completed Medium
151 May the Triforce be with you! ❌ Not Completed Easy
152 Mayan Calculation ❌ Not Completed Medium
153 Maze ❌ Not Completed Medium
154 Micro Assembly ❌ Not Completed Medium
155 MIME Type ✔️ Completed Easy C#, Java, Python
156 Minesweeper ❌ Not Completed Very Hard
157 Mini sudoku solver ❌ Not Completed Hard
158 Minimal number of swaps ❌ Not Completed Medium
159 Minimax excercise ❌ Not Completed Medium
160 Minimax Simple Example ❌ Not Completed Very Hard
161 Misère Nim ❌ Not Completed Hard
162 Monday Tuesday Happy Days ❌ Not Completed Hard
163 Monte Carlo Tree Search exercise ❌ Not Completed Hard
164 Monthly System ❌ Not Completed Medium
165 Morellet's random lines ❌ Not Completed Easy
166 Music Scores ❌ Not Completed Very Hard
167 Musical Intervals ❌ Not Completed Hard
168 Mystery sums ❌ Not Completed Hard
169 n Queens ❌ Not Completed Hard
170 Nature of quadrilaterals ❌ Not Completed Easy
171 Near-Palindromes ❌ Not Completed Medium
172 Neighbor-Sum Grids ❌ Not Completed Hard
173 Network Cabling ❌ Not Completed Medium
174 Next car license plate ? ❌ Not Completed Medium
175 Nintendo Sponsored Contest ❌ Not Completed Very Hard
176 Number of letters in a number - Binary ❌ Not Completed Medium
177 Number of paths between 2 points ❌ Not Completed Medium
178 Numeral system ❌ Not Completed Medium
179 Onboarding ✔️ Completed Easy C#, Java, Python
180 OneWay City ❌ Not Completed Very Hard
181 Order of Oopserations! ❌ Not Completed Hard
182 orDer oF succeSsion ✔️ Completed Easy C#, Java, Python
183 Organic Compounds ❌ Not Completed Easy
184 Othello ❌ Not Completed Medium
185 Paper labyrinth ❌ Not Completed Medium
186 Paper-folding curve ❌ Not Completed Hard
187 Parsing context-free grammar ❌ Not Completed Hard
188 Pascal Trapezoid ❌ Not Completed Hard
189 Pirate's treasure ❌ Not Completed Easy
190 Plight Of The Fellowship Of The Ring ❌ Not Completed Medium
191 Polydivisible number ❌ Not Completed Medium
192 Porcupine Fever ❌ Not Completed Hard
193 Power of Thor - Episode 1 ✔️ Completed Easy C#, Java, Python
194 Power of Thor - Episode 2 ❌ Not Completed Hard
195 Prime Transformations ❌ Not Completed Very Hard
196 Quaternion Multiplication ❌ Not Completed Hard
197 Queneau Numbers ❌ Not Completed Medium
198 Rectangular block spinner ❌ Not Completed Easy
199 Recurring Decimals ❌ Not Completed Very Hard
200 Remainder Fantasy ❌ Not Completed Hard
201 Reverse Polish Notation ❌ Not Completed Hard
202 Reversed Look-and-say ❌ Not Completed Medium
203 Rocket mice ❌ Not Completed Hard
204 Roller Coaster ❌ Not Completed Hard
205 Rooks Movements ❌ Not Completed Easy
206 Rubik ❌ Not Completed Medium
207 Rugby score ❌ Not Completed Easy
208 Sandpile addition ❌ Not Completed Medium
209 Scrabble ❌ Not Completed Medium
210 Self-driving car testing ❌ Not Completed Easy
211 Shadows of the Knight - Episode 1 ❌ Not Completed Medium
212 Shadows of the Knight - Episode 2 ❌ Not Completed Very Hard
213 Short accounts make long friends ❌ Not Completed Medium
214 Simple Awalé ❌ Not Completed Easy
215 Simple CPU Emulation 1 ❌ Not Completed Hard
216 Simple fraction to mixed number ❌ Not Completed Medium
217 Simple safecracking ❌ Not Completed Hard
218 Simplified Monopoly Turns Prediction ❌ Not Completed Medium
219 Simplify Selection Ranges ❌ Not Completed Hard
220 Skylines ❌ Not Completed Very Hard
221 Skynet Revolution - Episode 1 ❌ Not Completed Medium
222 Skynet Revolution - Episode 2 ❌ Not Completed Hard
223 Sliding puzzle ❌ Not Completed Very Hard
224 Snake encoding ❌ Not Completed Medium
225 Spreadsheet Labels ❌ Not Completed Hard
226 Spy the Spies ❌ Not Completed Very Hard
227 Squares order ❌ Not Completed Very Hard
228 Staircases ❌ Not Completed Very Hard
229 Stock Exchange Losses ❌ Not Completed Medium
230 Straddling Checkerboard Cryptography ❌ Not Completed Medium
231 Sum of divisors ❌ Not Completed Medium
232 Sum of odd ❌ Not Completed Hard
233 Super Computer ❌ Not Completed Hard
234 Surface ❌ Not Completed Hard
235 Symbolic system of equations ❌ Not Completed Hard
236 TAN Network ❌ Not Completed Hard
237 Teads Sponsored Contest ❌ Not Completed Medium
238 Telephone Numbers ❌ Not Completed Medium
239 Temperatures ✔️ Completed Easy C#, Java, Python
240 Test before Validate! ❌ Not Completed Hard
241 Tetris ❌ Not Completed Hard
242 Texas Holdem ❌ Not Completed Very Hard
243 Text alignment ❌ Not Completed Medium
244 Text formatting ✔️ Completed Easy C#, Java, Python
245 The barnyard ❌ Not Completed Very Hard
246 The Beautiful sequence ❌ Not Completed Hard
247 The Bridge ❌ Not Completed Hard
248 The Burglar's Dilemma ❌ Not Completed Hard
249 The Crime Scene ❌ Not Completed Very Hard
250 The Descent ✔️ Completed Easy C#, Java, Python
251 The Empire Enigma ❌ Not Completed Hard
252 The experience for creating puzzles ❌ Not Completed Medium
253 The Fastest ❌ Not Completed Medium
254 The Gift ❌ Not Completed Medium
255 The Grand Festival - I ❌ Not Completed Medium
256 The Grand Festival - II ❌ Not Completed Medium
257 The greatest number ❌ Not Completed Hard
258 The Highest Building ❌ Not Completed Hard
259 The Holy Grail ❌ Not Completed Hard
260 The hungry duck - part 1 ❌ Not Completed Hard
261 The hungry duck - part 2 ❌ Not Completed Hard
262 The Labyrinth ❌ Not Completed Hard
263 The Last Crusade - Episode 1 ❌ Not Completed Medium
264 The Last Crusade - Episode 2 ❌ Not Completed Hard
265 The Last Crusade - Episode 3 ❌ Not Completed Very Hard
266 The Lucky Number ❌ Not Completed Very Hard
267 The max surface box ❌ Not Completed Hard
268 The Optimal Urinal Problem ❌ Not Completed Medium
269 The Resistance ❌ Not Completed Very Hard
270 The River I. ✔️ Completed Easy C#, Java, Python
271 The River II. ✔️ Completed Easy C#, Java, Python
272 The Total is Right - Weird edition ❌ Not Completed Hard
273 The Travelling Salesman Problem ❌ Not Completed Easy
274 The two piles difference ❌ Not Completed Very Hard
275 The Ultimate Test ❌ Not Completed Medium
276 The Urinal Problem ❌ Not Completed Medium
277 The water jug riddle from Die Hard 3 ❌ Not Completed Very Hard
278 There is no Spoon - Episode 1 ❌ Not Completed Medium
279 There is no Spoon - Episode 2 ❌ Not Completed Hard
280 These Romans are crazy! ❌ Not Completed Medium
281 Ticket to Ride: Europe ❌ Not Completed Very Hard
282 Timer for Clash of Code ❌ Not Completed Hard
283 To Sky's Edge ❌ Not Completed Hard
284 Trits (Balanced Ternary Computing) ❌ Not Completed Medium
285 Turing machine ❌ Not Completed Hard
286 TXT2HTML ❌ Not Completed Hard
287 Unflood The World ❌ Not Completed Very Hard
288 Unfolding paper ❌ Not Completed Very Hard
289 Universe Conquest ❌ Not Completed Hard
290 Vortex ❌ Not Completed Hard
291 Vote counting ❌ Not Completed Medium
292 Vox Codei - Episode 1 ❌ Not Completed Hard
293 Vox Codei - Episode 2 ❌ Not Completed Very Hard
294 Wall Street ❌ Not Completed Hard
295 War ❌ Not Completed Medium
296 What's so complex about Mandelbrot? ❌ Not Completed Easy
297 Winamax Sponsored Contest ❌ Not Completed Hard
298 X egg problem ❌ Not Completed Hard
299 XML MDF-2016 ❌ Not Completed Easy
300 Xorandor ❌ Not Completed Very Hard
301 Zergling rush ❌ Not Completed Hard

Disclaimer

I created all the solutions found here for myself. There may be similarities with solutions of others. These similarities are then random and not intended.