Visual illustration of the code challenge: Team Pokemon #2

Team Pokemon #2

Tu as une grande quantité de Pokemons à ta disposition, de tous les types… Sauras tu constituer la meilleure équipe possible ?

Coding in the sandbox You must be logged in to access the sandbox.

Mission

Tu vas partir explorer le monde… Avant de partir, tu souhaites constituer la meilleure équipe de Pokemons possible. Il te faudra choisir tes Pokemons judicieusement…

Règles

1 équipe de Pokemons est constituée de cette façon :

  • 1 Pokemon de type Eau
  • 1 Pokemon de type Feu
  • 1 Pokemon de type Herbe
  • 1 Pokemon de type Rare (Air, Poison, Glace, Psychique ou Insecte)

Dans le tableau pokemons, chaque entrée correspond à un pokemon :

type:puissance

Tu dois donc trouver la meilleure équipe de Pokemon en prenant le meilleur Pokemon à chaque fois pour constituer ton équipe. C’est-à-dire le pokemon qui a la puissance la + élevée.

Tu dois retourner la somme des puissances des Pokemons retenus.

Remarques : Il y a forcément une équipe possible à constituer. Si 2 Pokemons ont la même puissance, tu prends celui que tu veux, ça ne change rien.

Solve the challenge

To code this challenge, several possibilities:
- Want to start coding right away? Use the online Sandbox.
- Want to work in your favorite editor? Organize your code well, test, check out our API documentation.
- You can also copy/paste a dataset below.

challenge code for resolution via API: POKEMON_2

Some resources to help you:
Data and algorithmic logic Methodologies Corrections

Support for resolution

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 progress

Methodologies

Develop 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!


Corrections

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, Tableaux, Booléens, Fonctions

Keep coding

Other challenges to complete

Beginner
Greenoïd #4 – Une faille dans le système

Greenoïd #4 – Une faille dans le système

Vous découvrez qu’AURA a déjà plusieurs fois condamné l’humanité pour préserver l’équilibre de la planète.

Calculation Corrigé disponible : Python
Beginner
Greenoid #5 - A few more hours

Greenoid #5 - A few more hours

Calculation Corrigé disponible : Javascript
Beginner
#1 : Le grand saut

#1 : Le grand saut

Ada vient de tweeter son oeuvre et est tout de suite reprise par plusieurs comptes. On cherche à connaitre l’audience totale.

Calculation