These are a collection of solutions to the puzzles on CodinGame.com
CodingGame has a vast selection of challenging problems, in a variety of different contexts, requiring knowledge in all aspects of programming to solve them.
There are multiple different modes available: Clash of Code, Puzzles, Code Golf, Bot Programming and Optimization. Each mode offers something unqiue and challenging.
The following is a collection of my created puzzles and Clash of Codes that have been accepted, awaiting approval or under construction.
Name | Tags | Modes | Solution | Status |
---|---|---|---|---|
GeoGuessr Best Guess | String Manipulation Conditions |
Fastest Shortest |
Python Ruby |
βοΈ |
Formula 1 Championship | Hashmap String Manipulation Sorting |
Fastest Shortest |
Python Ruby |
βοΈ |
Beam Rotation | Mathematics Moments |
Fastest Shortest |
Python | βοΈ |
Santa's Gift Sorting | Sorting | Fastest Shortest |
Python | βοΈ |
Football Scores | Hashmap String Sorting |
Fastest Shortest |
Python | βοΈ |
Ordinal Selection | Ordinal Number | Reverse | π§ |
Name | Difficulty | Total Attempts | Success Rate | Rating | Tags | Solution | Status |
---|---|---|---|---|---|---|---|
Tired Pac-Man | Medium | DFS Dynamic programming Pathfinding Memoization |
Python | β³ | |||
Pandora's Bridges | Medium | Graphs Trigonometry 3D |
Python | β³ | |||
The Sovereign's Game | Medium | 38 | 76% | 4.3β | Heap Greedy Algorithm |
Python | βοΈ |
The Institute | Medium | DFS BFS |
π§ | ||||
Darts Checkout Combinations | Easy | 174 | 71% | 4.5β | DFS BFS Brute-Force |
Python | βοΈ |
Road to Mount Boom | Python | π§ |
Clash of Code is a mode aimed at improving coding efficiency through racing other users to create a robust solution to a problem as quick as possible. There are three different modes available in Clash of Code: Fastest, Shortest and Reverse.
Fastest: This mode is to create a solution to a problem passing all validators as quick as possible.
Shortest: This mode is for creating a solution in the shortest number of characters possible.
Reverse: This mode provides an input and output only. The user must decipher the problem only from this information and create a solution as quick as they can.
Position | Percentile | Score | Participations |
---|---|---|---|
178 / 779,622 | Top 0.023% | 25.13 | 602 |
Position | Percentile | Score | Participations |
---|---|---|---|
36 / 739,096 | Top 0.0049% | 28.28 | 530 |
Puzzles are a selection of problems split into different difficulty levels. The goal is to provide a solution that will pass hidden validators, to ensure a complete solution. The hidden validators will include general solutions as well as edge cases. Each problem is accompanied by tags releated to the problem, for example: BFS, Trie, Backtracking, Pathfinding, Cryptography, ... etc.
No. | Puzzle Name | State | Language | Tags |
---|---|---|---|---|
001 | Moves in Maze | βοΈ Completed | Python | BFS Flood Fill Maze |
002 | Six Degrees of Kevin Bacon | βοΈ Completed | Python | Graphs BFS Lists |
003 | Encryption/Decryption of Enigma Machine | βοΈ Completed | Python | Cryptography Encoding String Manipulation Strings |
004 | The Weight of Words | βοΈ Completed | Python | Cryptography |
005 | ABCDEFGHIJKLMNOPQRSTUVWXYZ | βοΈ Completed | Python | DFS BFS Arrays |
006 | Mars Lander - Episode 1 | βοΈ Completed | Python Ruby Java JavaScript C++ C C# Bash D Dart F# Go Groovy Kotlin Lua ObjectiveC PHP Pascal Perl Rust Scala Swift TypeScript VBNET Clojure Haskell OCaml |
Conditions |
007 | Logic Gates | βοΈ Completed | Python Java |
Logic Hashmap Bitwise Operations Arrays |
008 | Horse-Racing Duels | βοΈ Completed | Python Ruby Java JavaScript C++ C C# Bash D Dart Go Groovy Lua Kotlin Perl TypeScript Haskell |
Loops Array Sorting |
009 | The Descent | βοΈ Completed | Python Ruby Java JavaScript C++ C C# Bash D Dart F# Go Groovy Kotlin Lua ObjectiveC PHP Pascal Perl Rust Scala Swift TypeScript VBNET OCaml |
Loops |
010 | Ghost Legs | βοΈ Completed | Python Ruby |
Loops Conditions |
011 | Retro Typewriter Art | βοΈ Completed | Python Ruby |
Parsing Ascii Art |
012 | ASCII Art | βοΈ Completed | Python Ruby |
Ascii Art Arrays Loops Strings |
013 | Unary | βοΈ Completed | Python Ruby |
Encoding Loops Conditions Strings |
014 | Temperatures | βοΈ Completed | Python Ruby Java JavaScript |
Arrays Loops Conditions |
015 | Create the Longest Sequence of 1s | βοΈ Completed | Python Ruby Java JavaScript |
String Manipulation |
016 | Defibrillators | βοΈ Completed | Python | Trigonometry Distance Loops |
017 | Power of Thor - Episode 1 | βοΈ Completed | Python Ruby Java JavaScript |
Conditions |
018 | MIME Type | βοΈ Completed | Python | Hash Tables Loops Conditions Strings |
019 | NGR - Basic Radar | βοΈ Completed | Python Java |
Hashmap Sorting Mathematics |
020 | Brackets, Extreme Edition | βοΈ Completed | Python Ruby Java C++ |
Stack Hashmap |
021 | The Dart 101 | βοΈ Completed | Python |
Queue Simulation Conditions |
022 | Longest Coast | βοΈ Completed | Python |
DFS BFS Graphs |
023 | Cheap Choices | βοΈ Completed | Python Java |
Hashmap Loops |
024 | Periodic Table Spelling | βοΈ Completed | Python |
DFS BFS Loops Conditions |
025 | Anagram to Break Code! | βοΈ Completed | Python |
Anagram Array String Manipulation |
026 | Suduko Validator | βοΈ Completed | Python |
2D Array Conditions |
027 | Island Escape | βοΈ Completed | Python |
Flood Fill DFS 2D Array |
028 | Word Search for Programmers | βοΈ Completed | Python |
2D Array String Manipulation Sets Conditions |
029 | Should Bakers be Frugal? | βοΈ Completed | Python Ruby Java JavaScript |
Resource Management Simulation Mathematics Geometry |
030 | Rock Paper Scissors Lizard Spock | βοΈ Completed | Python Ruby Java |
Hashmap Loops Conditions |
031 | What πΌ is π· Your πΈ Garden π Worth? | βοΈ Completed | Python |
Hashmap Mathematics String Manipulation |
032 | You are the Father: Maury Povich Style | βοΈ Completed | Python |
String Manipulation Hashmap |
033 | Treasure Hunt | βοΈ Completed | Python |
Pathfinding Recursive DFS Loops |
034 | Fax Machine | βοΈ Completed | Python |
Encoding |
035 | Count Your Coins | βοΈ Completed | Python Ruby |
Mathematics Loops |
036 | Zeckendorf Representation | βοΈ Completed | Python Ruby Java |
Greedy Algorithm Mathematics Arithmetic Numbers |
037 | Object Insertion | βοΈ Completed | Python Ruby Java |
2D Array Loops |
038 | Hidden Messages In Images | βοΈ Completed | Python |
Image Processing Loops |
039 | Hunger Games | βοΈ Completed | Python |
Object Sorting Hashmap |
040 | Credit Card Verifier (Luhnβs Algorithm) | βοΈ Completed | Python Ruby Java |
Check-digit |
041 | Prefix Code | βοΈ Completed | Python |
Trie String Manipulation Encoding |
042 | NATO-Alphabet's Odd Uncles | βοΈ Completed | Python Ruby Java |
Pattern Recognition String Manipulation Loops Conditions |
043 | Mountain Map | βοΈ Completed | Python Ruby Java |
ASCII Art |
044 | The Broken Editor | βοΈ Completed | Python Ruby Java |
String Manipulation Arrays |
045 | Card Counting When Easily Distracted | βοΈ Completed | Python Ruby |
Probability Mathematics Hashmap String Manipulation |
046 | Robot Show | βοΈ Completed | Python Ruby Java JavaScript C++ C C# D Dart |
Strive for Simplicity Array Sorting |
047 | Annihilation | βοΈ Completed | Python |
Simulation Hashmap Tuple |
048 | Detective Pikaptcha EP1 | βοΈ Completed | Python Python 2 Ruby |
Maze Recursive DFS |
049 | Detective Pikaptcha EP2 | βοΈ Completed | Python |
Maze Simulation DFS |
050 | A Child's Play | βοΈ Completed | Python |
Graph Simulation Hashmap |
051 | 1000000000D WORLD | βοΈ Completed | Python Ruby Java |
Mathematics Dot Product |
052 | Blackjack solver | βοΈ Completed | Python |
Card Games Loops Conditions Strings |
053 | Where's Wally? | βοΈ Completed | Python |
Regular Expressions ASCII Art String Manipulation |
054 | Unique Prefixes | βοΈ Completed | Python |
Hashmap Array String Manipulation |
055 | Euclidβs Algorithm | βοΈ Completed | Python Ruby Java JavaScript C++ C C# |
Recursion Mathematics |
057 | Lumen | βοΈ Completed | Python | Loops 2D Array |
056 | Random Walk | βοΈ Completed | Python Ruby Java |
Simulation Hashmap |
058 | The Travelling Salesman Problem | βοΈ Completed | Python | Graphs Greedy Algorithm |
059 | TicTacToe | βοΈ Completed | Python | Simulation 2D Array String Manipulation |
060 | The Other Side | βοΈ Completed | Python | DFS Graph Recursion |
061 | Azimut | βοΈ Completed | Python Ruby Java |
Maze Rotation |
062 | Personal Best | βοΈ Completed | Python Ruby Java |
Hashmap Arrays |
063 | Minimal Palindrome Distance | βοΈ Completed | Python Ruby Java |
Palindrome Loops |
064 | Dolbear's Law | βοΈ Completed | Python | Mathematics Formula |
065 | Queen Control | βοΈ Completed | Python | Chess Loops Conditions |
066 | Odd-Quad-Out | βοΈ Completed | Python | 2D Array Arithmetic Digit Counts |
067 | Reverse Minesweeper | βοΈ Completed | Python Ruby |
2D Array |
068 | Flip The Sign | βοΈ Completed | Python | 2D Array |
069 | Substitution Encoding | βοΈ Completed | Python Ruby Java |
Encoding 2D Array String Manipulation |
070 | The River I. | βοΈ Completed | Python Ruby Java C++ |
Conditions |
071 | Van Eck's sequence | βοΈ Completed | Python Ruby Java |
Memoization Hashmap |
072 | Bank Robbers | βοΈ Completed | Python Ruby |
Mathematics Loops |
073 | Wordle Colorizer | βοΈ Completed | Python | Hashmap String Manipulation |
074 | Insert to String | βοΈ Completed | Python Ruby |
Strive for Simplicity String Manipulation |
075 | Dungeons and Maps | βοΈ Completed | Python Ruby Java |
Pathfinding Hashmap |
076 | Balanced Ternary Computer: Encode | βοΈ Completed | Python | Arithmetic |
077 | Rocks, Papers, Scissors-es | βοΈ Completed | Python Ruby Java |
Hashmap Simulation |
078 | Die Handedness | βοΈ Completed | Python Ruby |
Mathematics Geometry |
079 | Offset Arrays | βοΈ Completed | Python Ruby |
Hashmap Parsing |
080 | May the Triforce be with you! | βοΈ Completed | Python Ruby Java JavaScript |
ASCII Art Loops |
081 | Sum of Spiral's Diagonals | βοΈ Completed | Python Ruby Java |
Optimization Mathematics |
082 | Popularity of Each Activity | βοΈ Completed | Python Ruby |
2D Array Mathematics |
083 | Simple Load Balancing | βοΈ Completed | Python Ruby |
Simulation Optimization Mathematics |
084 | Decode the Message | βοΈ Completed | Python Ruby Java |
Cryptography Encoding Modular Calculus |
085 | Bouncing Simulator | βοΈ Completed | Python | 2D Array Simulation |
086 | π€ Robot Reach | βοΈ Completed | Python Ruby Java JavaScript |
Recursion |
087 | The Prime Twins - Part One | βοΈ Completed | Python Ruby Java JavaScript C++ C C# |
Mathematics Loops |
088 | Tile a Floor Differently | βοΈ Completed | Python Ruby |
ASCII Art 2D Array |
089 | GDQ - Binary Coded Decimal Clock | βοΈ Completed | Python Ruby |
String Manipulation |
090 | Distributing Candy | βοΈ Completed | Python Ruby Java JavaScript |
Array Conditions |
091 | Couple's Picture-Frame | βοΈ Completed | Python Ruby |
Mathematics String Manipulation ASCII Art |
092 | Caesar is the Chief | βοΈ Completed | Python Ruby |
Cipher Encryption |
093 | Max Area | βοΈ Completed | Python Ruby |
Mathematics Arrays |
094 | Add'em Up | βοΈ Completed | Python Ruby Java JavaScript |
Greedy Algorithm Sorting |
095 | Benford's Law | βοΈ Completed | Python Ruby |
Probability Hashmap |
096 | Panel Count | βοΈ Completed | Python Ruby |
Hashmap Conditions |
097 | The Michelangelo Code | βοΈ Completed | Python Ruby |
Optimization String Manipulation |
098 | Shoot Enemy Aircraft | βοΈ Completed | Python Ruby |
Arrays Loops |
099 | Rotating Arrows | βοΈ Completed | Python Ruby |
2D Array Loops |
100 | Tile a Floor | βοΈ Completed | Python Ruby |
ASCII Art String Manipulation Loops |
101 | Rooks Movements | βοΈ Completed | Python | Chess Conditions |
102 | Faro shuffle | βοΈ Completed | Python | Loops |
103 | Folding Paper | βοΈ Completed | Python Ruby |
Mathematics Loops Sequences |
104 | Tree Paths | βοΈ Completed | Python Ruby |
Binary Tree Graphs |
105 | 7-Segment Scanner | βοΈ Completed | Python Ruby |
ASCII Art String Manipulation Conditions Loops |
106 | Happy Numbers | βοΈ Completed | Python Ruby |
Data Types Loops |
107 | Page of Contents | βοΈ Completed | Python Ruby |
Parsing String Manipulation |
108 | Playing Card Odds | βοΈ Completed | Python Ruby |
Probability Sets Card Games |
109 | How high up does the beer go? | βοΈ Completed | Python Ruby |
Geometry |
110 | Ted's Compiler | βοΈ Completed | Python Ruby |
Parsing Stack |
111 | Kiss the Girls | βοΈ Completed | Python Ruby |
Probability |
112 | Cosmic Love | βοΈ Completed | Python Ruby |
Physics Mathematics |
113 | Horse-Racing Hyperduals | βοΈ Completed | Python Ruby |
Loops |
114 | Item Maker | βοΈ Completed | Python | ASCII Art |
115 | Ulam Spiral | βοΈ Completed | Python Ruby |
Mathematics ASCII Art Primes |
116 | Number derivation | βοΈ Completed | Python Ruby |
Mathematics Arithmetic Derivative |
117 | Stunning Numbers | βοΈ Completed | Python | Optimization String Manipulation |
118 | Pirate's Treasure | βοΈ Completed | Python Ruby Java |
Arrays Loops Conditions |
119 | Kangaroo Words | βοΈ Completed | Python Ruby |
Sorting Loops Conditions |
120 | Jack Silver: The Casino | βοΈ Completed | Python Ruby Java |
Strings |
121 | Bulk Email Generator | βοΈ Completed | Python Ruby |
String Manipulation |
122 | Onboarding | βοΈ Completed | Python Ruby Java JavaScript C++ C C# Bash D Dart F# Go Groovy Kotlin Lua ObjectiveC PHP Pascal Perl Rust Scala Swift TypeScript VBNET Clojure Haskell OCaml |
Conditions |
123 | Monday Tuesday Happy Days | βοΈ Completed | Python Ruby |
Array Condition |
124 | Rugby Score | βοΈ Completed | Python Ruby |
Conditions Loops |
125 | Self-Driving Car Testing | βοΈ Completed | Python |
ASCII Art |
126 | nD-Vector Sorting | βοΈ Completed | Python Ruby |
Topology Sorting 2D Array |
127 | Where am I going? | βοΈ Completed | Python Ruby |
Pathfinding Strings Loops Conditions |
128 | Tabloid Couple-Names π | βοΈ Completed | Python Ruby |
String Manipulation Loops |
129 | Create 'Turn Here' Signs | βοΈ Completed | Python Ruby |
ASCII Art Loops Conditions Logic |
130 | XML MDF-2016 | βοΈ Completed | Python Ruby |
Hashmap Strings Parsing |
131 | Metric Units | βοΈ Completed | Python Ruby |
Mathematics Conversion |
132 | Digital Scoreboard | βοΈ Completed | Python | ASCII Art Conditions Parsing |
133 | Snake Sort 2D | βοΈ Completed | Python Ruby |
Sorting |
134 | Histogram | βοΈ Completed | Python | Mathematics ASCII Art |
135 | Make an Atari Font | βοΈ Completed | Python | Bitboarding ASCII Art 2D Array String Manipulation |
136 | Is the King In Check? (Part 1) | βοΈ Completed | Python Ruby |
Chess Conditions |
137 | 1D Bush Fire | βοΈ Completed | Python Ruby |
Array |
138 | Darts Checkout Routes | βοΈ Completed | Python Ruby Java |
DFS BFS Brute-Force |
139 | Save the Drone! | βοΈ Completed | Python Ruby |
Parsing String Hashmap |
140 | Furlongs per Fortnight | βοΈ Completed | Python | String Manipulation Mathematics |
141 | Binary Image | βοΈ Completed | Python Ruby |
Arrays ASCII Art |
142 | Frame The Picture | βοΈ Completed | Python | Loops String Manipulation |
143 | Build A Bookcaseπ¨ | βοΈ Completed | Python Ruby |
ASCII Art Mathematics Loops Logic |
144 | Agent X, Mission 1 β The Caesar Cipher | βοΈ Completed | Python | Cryptography Cipher |
145 | Someone's Acting Sus.... | βοΈ Completed | Python | Logic Loops |
146 | No More Pythons, Please! | βοΈ Completed | Python | ASCII Art Loops Conditions 2D Array Strings |
147 | Touching Balls | βοΈ Completed | Python | Mathematics Loops |
No. | Puzzle Name | State | Language | Tags |
---|---|---|---|---|
01 | Telephone Numbers | βοΈ Completed | Python Ruby Java |
Tries Set |
02 | War | βοΈ Completed | Python | Queues |
03 | Shadow if the Knight - Episode 1 | βοΈ Completed | Python | Binary Search Intervals |
04 | Network Cabling | βοΈ Completed | Python | Medians Distances Loops |
05 | Don't Panic! | βοΈ Completed | Python | Conditions |
06 | Stock Exchange Loses | βοΈ Completed | Python | Arrays Loops Conditions |
07 | Scrabble | βοΈ Completed | Python | Loops Conditions |
08 | There is no Spoon - Episode 1 | βοΈ Completed | Python | 2D Array Lists |
09 | Detective Pikaptcha EP3 | βοΈ Completed | Python | Maze Simulation DFS |
10 | The Cash Register | βοΈ Completed | Python | DFS Memoization |
11 | Dwarfs Standing on the Shoulders of Giants | βοΈ Completed | Python | Memoization DFS Graphs |
12 | Blunder - Episode 1 | βοΈ Completed | Python Python 2 |
State Machine Simulation Recursion |
13 | Mayan Calculation | βοΈ Completed | Python | Radix Strings Mathematics |
14 | Frequency-Based Decryption | βοΈ Completed | Python | Cryptography Encoding String Manipulation |
15 | Hidden Word | βοΈ Completed | Python | 2D Array String Manipulation |
16 | Gravity | βοΈ Completed | Python Ruby |
2D Array |
17 | Roman Sorting | βοΈ Completed | Python Ruby |
Sorting |
18 | Vote Counting | βοΈ Completed | Python | Hashmap Loops |
19 | Magic Coloring | βοΈ Completed | Python Ruby |
DFS Flood Fill Recursion |
20 | Pachinko Jackpot | βοΈ Completed | Python Ruby |
Dynamic Programming Trees Memoization |
21 | Is the King In Check? (Part 2) | βοΈ Completed | Python Ruby |
Chess Conditions |
22 | The Sovereign's Game | βοΈ Completed | Python | Greedy Algorithm Optimization Sorting |
23 | β Not Completed |
No. | Puzzle Name | State | Language | Tags |
---|---|---|---|---|
01 | Longest Palindrome | βοΈ Completed | Python | Palindrome String |
02 | Magic count of Numbers | βοΈ Completed | Python | Arithmetic Mathematics |
03 | The Greatest Number | βοΈ Completed | Python | String Manipulation Conditions |
04 | Spreadsheet Labels | βοΈ Completed | Python Ruby |
Base Conversion String Manipulation |
05 | β Not Completed |
No. | Puzzle Name | State | Language | Tags |
---|---|---|---|---|
01 | The Resistance | βοΈ Completed | Python Ruby |
Memoization Dynamic Programming Encoding Recursion |
02 | Shadows of the Knight - Episode 2 | β 62% Completed | Binary Search Intervals |
|
03 | β Not Completed |
Code golf is a challenge to achieve the shortest possible source code by using language specific tricks for a specific problem.
No. | Puzzle Name | State | Language | Code Size | Tags |
---|---|---|---|---|---|
1 | The Descent | βοΈ Completed | Python Ruby JavaScript |
49 37 69 |
Loops |
2 | Ascii Art | βοΈ Completed | Python Ruby |
119 108 |
Strings Loops Arrays |
3 | Unary | βοΈ Completed | Python Ruby |
116 107 |
Encoding Loops Conditions String |
4 | Power of Thor | βοΈ Completed | Python Ruby |
111 106 |
Conditions |
5 | Temperatures | βοΈ Completed | Python Ruby |
72 54 |
Arrays Loops Conditions |
6 | Don't Panic | βοΈ Completed | Python | 227 | Conditions |
No. | Puzzle Name | State | Language | Code Size | Tags |
---|---|---|---|---|---|
1 | Telephone Numbers | βοΈ Completed | Python Ruby |
87 74 |
Sets Tries |
2 | Network Cabling | βοΈ Completed | Python | 123 | Loops Distances Medians |
3 | Shadows of the Knight - Episode 1 | βοΈ Completed | Python | 176 | Binary Search Intervals |
4 | Dwarfs Standing on the Shoulders of Giants | βοΈ Completed | Python | 191 | Memoization Recusion Graphs |
5 | Mayan Calculation | βοΈ Completed | Python | 366 | Radix Strings Mathematics |
6 | Blunder - Episode 1 | βοΈ Completed | Python | 773 | State Machine Simulation |
No. | Puzzle Name | State | Language | Code Size | Tags |
---|---|---|---|---|---|
1 | The Labyrinth | β Not Completed | BFS Pathfinding |
||
2 | The Bridge | β Not Completed | DFS Backtracking |
||
3 | Vox Codei - Episode 1 | β Not Completed | DFS Brut-force simulation |
||
4 | Super Computer | β Not Completed | Greedy Algorithm Scheduling |
||
5 | Roller Coaster | β Not Completed | Dynamic Programming Simulation |
||
6 | Surface | β Not Completed | BFS Flood Fill Memoization Recursion |
||
7 | The Fall - Episode 2 | β Not Completed | Backtracking Pathfinding |
||
8 | Gnome Sequencing | β Not Completed | Permutation String |
||
9 | Blunder - Episode 3 | β Not Completed | Regression Analysis |
No. | Puzzle Name | State | Language | Code Size | Tags |
---|---|---|---|---|---|
1 | Shadows of the Knight - Episode 2 | β 62% Completed | Binary Search Intervals |
||
2 | The Resistance | βοΈ Completed | Python Ruby |
346 281 |
Dynamic Programming Encoding Memoization Recursion |
3 | The Fall - Episode 3 | β Not Completed | Backtracking Pathfinding |
||
4 | Music Scores | β Not Completed | Encoding Image Processing Pattern Recognition |
||
5 | Vox Codei - Episode 2 | β Not Completed | Pattern Recognition DFS Brute-force Simulation |
||
6 | Mars Lander - Episode 3 | β Not Completed | Distances Trigonometry |
Bot progamming is a challenge to create an AI to run thorugh a simulation in the best method for a given task. This could be as simple as a rules based approach to neural networks. A solution is tested against other users solutions and ranked based on how well it performs against others.
Optimization is a mode where you need to optimise your code to provide the best possible outcome given a problem.