Aide Peach et Mario à s’entrainer pour qu’ils soient prêts à affronter le terrible Bowser !
Peach et Mario s’entrainent pour affronter Bowser ! Ils ont à leur disposition un superbe parcours, aide les à traverser sans encombre !
Peach et Mario doivent parcourir un certain nombre de plateformes pour réussir leur entrainement. Entre chaque plateforme, un vide par dessus lequel il faut sauter.
Ces plateformes sont modélisées dans la variable « platforms », sous la forme :
P____P____P__P_P_____P
« P » est une plateforme, « __ » est le vide.
Selon la longueur du vide :
Tu dois retourner la séquence des sauts, un « P » quand c’est Peach, un « M » quand c’est Mario. Par exemple « PPMMPPMPMPPMM ».
challenge code for resolution via API: MARIO_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 ;)
Programming concept(s) that can be used to solve this challenge: Conditions, Parsing, Chaines de caractères
Other challenges to complete