By activating the right valves, you manage to flood part of the Abyssum network infrastructure, which seems to be temporarily out of action. The countdown suddenly freezes, and AURA's voice echoes in the database: ‘Data modified. Risk reassessment calculation. Human interference suspected.’ You freeze. But this is no time to succumb to fear. It's time to warn the Greenoid tribes of the danger they're in. You take advantage of the general confusion to write a clear message: ‘An artificial intelligence is preparing to wipe out humanity, we must absolutely abandon Abyssum and reconsider the practices that threaten the balance of Greenoïd.’ You also include evidence of the imminent threat posed by AURA.
However, you face a major obstacle: the tribes have turned in on themselves and jealously guard their communication networks. Each tribe has its own frequency, and messages only travel individually, from tribe to tribe, but never all at once. Would it be possible to find a universal code capable of broadcasting your message to all the tribes simultaneously? Time is running out. You're in a race against time to send your message before AURA finalises its calculations and relaunches its plan for destruction.
You have at your disposal the communication keys of Greenoid's 8 main tribes. These keys allow each tribe to communicate 1 to 1, but never several to several. So you need to find a common key that will allow you to communicate with all the tribes at once!
To do this, follow these steps:
To do this, each character of the key has a value:
The values of each character must be summed (in base 10) and then transformed into base 2 over 8 bits.
Example:
'ab34' ⇒ 10 + 11 + 3 + 4 ⇒ 28 ⇒ 11100 ⇒ 00011100
We now need to analyse all the key pairs to determine their ‘composition’.
Composition works as follows:
If 2 bits of similar position are identical on each key, then the composition bit is 1, otherwise it is 0.
Example of a 4-bit composition:
You therefore need to determine all the possible compositions, without duplicates. If you have analysed key 3 with key 5, you no longer need to analyse key 5 with key 3.
All these binary values must be sorted in ascending order and then converted back to base 10.
To create the final key, you need to reapply the rule from step 1 in the other direction. To do this, you need to apply a modulo 36 to each of the values
If you have these 4 values :
In ascending order of values: 144, 178, 196 and 243
The final key would therefore be ‘0ygr’.
You must return the final key.
challenge code for resolution via API: GREENOID_7
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: Booléens, Fonctions, Parsing, Cryptographie, Chaines de caractères, Calculs
Other challenges to complete