Visual illustration of the code challenge: Les notes de musique

Les notes de musique

La musique, 7 notes, et une infinité de possibilité. Sauras tu déchiffrer une première mélodie ?

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

Mission

Tu découvres la musique et ses notes : Do, Ré, Mi, Fa, Sol, La, Si…

(Avoue tu as fredonné en lisant les notes ?!)

Voyons voir un peu comment se compose le morceau que tu découvres.

Règles

Tu as 2 informations :

  • notes contient la gamme (chacun des 7 notes) dans un ordre précis
  • music contient une mélodie, et donc chacune des notes potentiellement plusieurs fois (ou pas du tout…)

Tu dois retourner :

Le nombre d’occurrences de chaque note, séparées par des virgules, en respectant l’ordre présenté dans notes.

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: MUSIC_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: Tableaux

Keep coding

Other challenges to complete

Beginner
Team Pokemon

Team Pokemon

Tu veux être le meilleur dresseur ? On va voir si tu peux constituer une Team de Pokemons qui tient la route !

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

Greenoid #5 - A few more hours

Calculation Corrigé disponible : Javascript
Intermediate
YOLO les Pizzaïolos

YOLO les Pizzaïolos

Avertissement : ce challenge peut donner faim, il y est question de pizzas et de pizzaiolos un peu particuliers…

Calculation Corrigé disponible : PHP