Continue ton analyse pour comprendre comment l’ennemi compte attaquer.
L’analyse des vagues ennemies se poursuit.
Des informations complémentaires arrivent. L’ennemi dispose ses vaisseaux d’attaque selon certaines formations pour augmenter sa puissance. Tu vas donc devoir analyser plus finement les vaisseaux de type « Attack ».
On cherche à comprendre combien de formations différentes il y a. On considère qu’il s’agit d’une formation à partir de 2 A qui se suivent.
Pour simplifier la lecture des vagues, tu décides de remplacer les formations par la lettre X suivie du nombre de vaisseaux. Par exemple :
Tu dois retourner la répartition des différentes formations sous cette forme :
X2_19_X3_6_X4_5_X5_1_X7_1
Un peu d’explications :
Un peu d’aide :
challenge code for resolution via API: INVASION_2
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: Conditions, Tableaux, Fonctions, Parsing, Chaines de caractères
Other challenges to complete