Participe au dépouillement de l’élection en aidant à trier les bulletins.
Une élection a eu lieu, chacun et chacune ont déposé leur bulletin secret dans l’urne. Tu dois aider à décompter les bulletins et définir les 2 candidat(e)s qui passeront au tour suivant.
Une première chaîne de caractères indique les candidat(e)s qui participent à cette élection. 1 lettre = 1 candidat(e).
Une seconde chaîne de caractères indique tous les votes. 1 lettre = 1 vote.
Précisions :
Tu dois retourner :
Les pourcentages des 2 candidat(e)s qui arrivent en tête, dans l’ordre, sous ce format :
A22.1-C19.7
challenge code for resolution via API: ELECTION
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 ;)
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, Programmation Orientée Objet, Parsing
Other challenges to complete