Wall-E est un robot dont la mission est de nettoyer la Terre. Tu dois coder son fonctionnement pour qu’il traite efficacement ces déchets. Néanmoins, sois vigilant pour ne pas épuiser sa réserve d’énergie !
Wall-E est tout seul sur Terre pour nettoyer toute la pagaille qu’on a laissé…
Il faut que tu l’aide à gérer tous les déchets !
Voici les règles pour controler ce petit robot !
Wall-E démarre avec les caractéristiques suivantes :
Wall-E doit traiter chaque déchet présents dans la liste. Chaque valeur de la liste représente le poids du déchet à traiter.
Et voici les règles pour traiter les déchets.
Tu dois renvoyer le niveau de batterie final de Wall-E. Ou alors « KO » si Wall-E a puisé la totalité de sa batterie.
Le niveau de batterie final ne peut pas être inférieur à 20, il sera forcément allé se recharger avant.
challenge code for resolution via API: WALL_E
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, Programmation Orientée Objet, Booléens, Fonctions
Other challenges to complete