charlesfranciscodev / codingame

Resource for developers looking to learn from examples of coding challenges on CodinGame.

Home Page:https://www.codingame.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solutions to CodinGame Puzzles

CodinGame

The "Solutions to CodinGame Puzzles" project is a collection of answers to coding problems from CodinGame. CodinGame is a website where people can practice coding by solving puzzles. In this project, people have written solutions to these puzzles using languages like Python, C++, and Java. Each solution is saved in a file named after the puzzle it solves. The puzzles range from easy to hard and cover different coding topics like variables, conditions, and arrays. The goal of the project is to help developers get better at problem-solving and learn different ways of coding. It also includes explanations to help people understand the solutions better.

Python Version

Puzzles

Easy Puzzles

Title Solution(s) Topic(s)
Onboarding πŸ›Ή Python, JavaScript, C++ Variables, Input/Output, Conditions
The Descent πŸŒ„ Python β˜…, Kotlin, TypeScript, C Conditions, Loops
Power of Thor 1 ⚑ Python β˜…, Kotlin, TypeScript, C++, Swift Input/Output, Conditions
Temperatures ❄️ Python β˜…, Kotlin, TypeScript, Ruby Conditions, Loops, Arrays
Mars Lander 1 πŸš€ Python, Kotlin, TypeScript β˜…, C++ Conditions, Loops
ASCII Art 🎨 Python, Kotlin, TypeScript, Ruby β˜… Strings
Unary 1️⃣ Python, TypeScript β˜…, Haskell, C# Strings, Encoding
MIME Type 🎡 Python β˜…, Kotlin, TypeScript, C# Strings, Hash Tables
Defibrillators πŸ’– Python β˜…, Kotlin, TypeScript, C# Strings, Trigonometry
Racing Duals 🏁 Python β˜…, Kotlin, JavaScript, Ruby Arrays, Sorting

Medium Puzzles

Title Solution(s) Topic(s)
Shadows of the Knight 1 πŸ¦‡ Python β˜…, Kotlin, TypeScript Binary Search, 2D Arrays
There is no Spoon 1 πŸ₯„ Python β˜…, Kotlin, TypeScript, C++ 2D Arrays
DFS 1 πŸŒ† Python β˜…, JavaScript Graphs, BFS
Don't Panic 1 πŸ•ΆοΈ Python β˜…, Kotlin, TypeScript Conditions
War β™₯️ ♦️ ♠️ ♣️ Python β˜…, Kotlin, TypeScript, C++ Queues, Card Games
Stock Exchange Losses πŸ“ˆ Python β˜… Conditions, Loops
The Fall 1 πŸ’Ž Python, JavaScript β˜… 2D Arrays
Network Cabling πŸ”Œ Python Sorting, Median
Conway Sequence πŸ‘€ Python, Kotlin, C# Sequences
Telephone Numbers πŸ“± Python β˜… Tries
Dwarfs standing on giants 🏞️ Python β˜…, TypeScript Graphs, Recursion
Blunder 1 🍺 Python β˜… 2D Arrays, State Machine, Simulation
Scrabble πŸ”€ Python β˜…, Kotlin, TypeScript Strings, Hash Tables
The Gift 🎁 Python Arrays, Sorting, Greedy algorithms
Mayan Calculation 2️⃣0️⃣ Python, Kotlin β˜…, Ruby Strings

Hard Puzzles

Title Solution(s) Topic(s)
The Labyrinth 🌟 Python β˜… 2D Arrays, Graphs, BFS
DFS 2 πŸ™οΈ Python β˜…, Kotlin Graphs
Vox Codei 1 🎭 Python β˜…, C++ Simulation
Super Computer πŸ“… Python, Kotlin Sorting, Greedy Algorithms, Scheduling
Roller Coaster 🎒 Python β˜… Queues, Dynamic Programming, Simulation
Surface 🌊 Python β˜…, Kotlin 2D Arrays, Graphs, Flood Fill
CGX Formatter 🎻 Python β˜… Strings, Parsing
TAN Network πŸš‰ Python β˜…, Kotlin Graphs, Pathfinding
Genome Sequencing 🧬 Python β˜… Strings, Shortest Common Supersequence
Blunder 2 🎱 Python β˜… Pathfinding
Blunder 3 βŒ› Python β˜… Time Complexity

Poetry

# create a new virtual environment
conda create --name codingame python=3.11
conda activate codingame
pip3 install poetry

# Installing dependencies
poetry install --no-root

# Linting
poetry run ruff check .

# Formatting
poetry run ruff format .

General Tips

To effectively solve CodinGame puzzles, thoroughly understand the problem, break it into manageable steps, and use input/output specs for your solution. Employ appropriate data structures and algorithms like BFS, DFS, binary search, or sorting, optimizing for efficiency with techniques such as dynamic programming. Test against sample inputs, document your code well, collaborate, and explore different languages for skill development.

As you start learning to code on CodinGame, you're entering a world of puzzles that will test your skills in new ways. From adjusting simple things to solving harder problems with graphs and dynamic programming, you'll explore important programming ideas. Using Python, C++, or Java, you'll solve challenges like working with temperatures or helping Thor on adventures. Whether you're making pictures with characters or finding your way through a maze, each task will make you better at solving problems and teach you more about coding. Each puzzle you solve adds to a big collection of solutions, making a community of learners and creators. As you take on each challenge, you won't just get answers – you'll understand algorithms, data structures, and coding better. So, jump in, be creative, and enjoy learning and discovering new things on CodinGame.

About

Resource for developers looking to learn from examples of coding challenges on CodinGame.

https://www.codingame.com/

License:MIT License


Languages

Language:Python 47.7%Language:Kotlin 10.3%Language:Java 9.6%Language:C++ 8.3%Language:TypeScript 6.9%Language:C# 6.7%Language:JavaScript 3.4%Language:Go 2.2%Language:Ruby 1.9%Language:Swift 1.2%Language:Shell 0.9%Language:Haskell 0.4%Language:PHP 0.3%Language:C 0.1%