Un peu de peinture ! Colore les cases d’un quadrillage selon des règles bien définies.
Ton quadrillage présente un grand nombre de cases blanches (white) et quelques cases rouges (red). Tu dois colorer, en bleu (blue), les cases qui entourent les cases rouges.
Tu te trouves sur un quadrillage de 10 lignes et 10 colonnes :
Pour chaque case rouge, tu dois tenter de colorer les 4 cases adjacentes en bleu :
Mais attention :
Tu dois retourner le nombre de cases bleues présentes après avoir passé en revue toutes les cases du quadrillage.
challenge code for resolution via API: PAINT
Some resources to help you:
Data and algorithmic logic Methodologies Corrections
Progress through challenges using our resolution aids: tools, techniques and advice to help you overcome the most complex programming challenges with methodology, confidence and creativity.
Dataset and algorithmic logic
Based on the data and the expected response, use the process to determine the logic to implement.
Show data and progressDevelop a structured approach with our solving guides. Work on specific concepts such as object-oriented programming or unit testing to improve your coding style and progress.
No methodology yet for this challenge, but we are working on it! Follow us to be informed of the release!
The corrections allow you to discover certain technical concepts but will also give you a solution to the challenge. Code the challenge yourself before consulting the corrections ;)
No answer yet for this challenge, but we&'re working on it! Follow us to be informed of the release!
Programming concept(s) that can be used to solve this challenge: Grille 2D, Conditions, Programmation Orientée Objet, Booléens
Other challenges to complete