Continue ton analyse pour définir la vague la plus puissante parmi celles en approche.
L’analyse des vagues ennemies se poursuit. Cette fois-ci il est question d’estimer la puissance de chaque vague pour déterminer laquelle est la plus importante.
Voici comment calculer la puissance d’une vague. Chaque type de vaisseau a un « poids » en points de puissance :
En complément, 2 vaisseaux Attack qui se suivent rajoutent 1 point de puissance. Si 3 vaisseaux Attack se suivent, cela rajoute 2 points, et ainsi de suite.
Il en est de même pour les vaisseaux Bomber. Mais pas pour les vaisseaux Defense ou Support.
Précision, une séquence « AB » n’octroie pas de point supplémentaire.
Tu dois retourner la puissance maximale parmi les puissances de toutes les vagues.
challenge code for resolution via API: INVASION_1
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, Parsing, Chaines de caractères, Calculs
Other challenges to complete