Giter Club home page Giter Club logo

charlesfranciscodev / codingame Goto Github PK

View Code? Open in Web Editor NEW
47.0 5.0 19.0 501 KB

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

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

Python 47.74% C++ 8.31% Java 9.58% Ruby 1.89% Kotlin 10.26% JavaScript 3.41% PHP 0.34% Go 2.22% Haskell 0.42% TypeScript 6.90% Swift 1.18% C# 6.67% Shell 0.94% C 0.15%
codingame data-structures algorithms cpp kotlin python typescript

codingame's Introduction

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.

codingame's People

Contributors

charlesfranciscodev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.