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 | ✔️ |
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 | 23 | 70% | 4.4⭐ | Heap Greedy Algorithm |
Python | ✔️ |
The Institute | Medium | DFS BFS |
🚧 | ||||
Darts Checkout Combinations | Easy | 67 | 57% | 4.5⭐ | DFS BFS Brute-Force |
Python | ✔️ |
Run Length Processing | Easy | RLE Data Processing Encoding Decoding |
🚧 |
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 |
---|---|---|---|
55 / 754,726 | Top 0.0069% | 27.33 | 592 |
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 |
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 |
Arrays Loops Conditions |
015 | Create the Longest Sequence of 1s | ✔️ Completed | Python Ruby Java |
String Manipulation |
016 | Defibrillators | ✔️ Completed | Python | Trigonometry Distance Loops |
017 | Power of Thor - Episode 1 | ✔️ Completed | Python Ruby Java |
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 |
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 |
DFS BFS Brute-Force |
139 | ❌ Not Completed |
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 |
49 37 |
Loops |
2 | Ascii Art | ✔️ Completed | Python Ruby |
119 114 |
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 | 197 | 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.