Visual illustration of the code challenge: Les plaques d’immatriculation #1

Les plaques d’immatriculation #1

Enfant, on passait le temps dans la voiture en observant les plaques d’immatriculation. Et si on codait tout ça ?

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

Mission

Instant souvenirs… Quand j’étais petit et que je partais en vacances avec mes parents en voiture, on observait les plaques d’immatriculation pour passer le temps : trouver des combinaisons, donner le nom du département correspondant, etc.

C’est donc ce genre de petit jeu que je te propose ici, trouver les plaques d’immatriculation qui présentent une certaine symétrie.

Règles

  • La plaque ED-845-TY ne présente aucune symétrie et vaut donc 1 point
  • La plaque ED-845-TE présente 1 symétrie (le E) et vaut donc 10 points
  • La plaque ED-845-DY présente 1 symétrie (le D) et vaut donc 10 points
  • La plaque ED-848-TY présente 1 symétrie (le 8) et vaut donc 10 points
  • La plaque ED-845-DE présente 2 symétries (le E et le D) et vaut donc 100 points (2 autres possibilités de double symétrie)
  • La plaque ED848DE présente 3 symétries (le E, le D et le 8) et vaut donc 1 000 points

Le challenge renvoie une liste de plaques d’immatriculation, dans la variable « plates ».

Tu dois retourner :

Le score total de ces plaques d’immatriculation

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: CARS_1

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 ;)

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

Keep coding

Other challenges to complete

Beginner
Orion – Défense spatiale #1

Orion – Défense spatiale #1

Défends la planète d’Orion en analysant les vagues de vaisseaux alien en approche !

Behavioral
Intermediate
Greenoïd #6 - A project to sink

Greenoïd #6 - A project to sink

Behavioral Corrigé disponible : Java
Beginner
Avengers

Avengers

Aide les Avengers à battre Thanos ! Mais combien de fois devras-tu essayer ?

Behavioral Corrigé disponible : Javascript