Mystery function #3 (retired)
Description:
This kata was inspired by piranhas's 'Mystery function #1'.
The idea behind it is pretty simple, i cannot guarantee the same about solving it :)
Description:
There's a mystery
function which is already available for you to use. It accepts a string
as a parameter and outputs a string
.
The exercise depends on guessing what this function actually does.
You can call the mystery function like this:
var myOutput = mystery('myInput');
Using your own test cases, try to call the mystery function with different input strings and try to analyze its output in order to guess what is does.
You are free to call the mystery function in your own test cases however you want.
When you think you've understood how the mystery function works, prove it by reimplementing its logic in a function that you should call solved(x)
.
To validate your code, your function 'solved' should return the same output as the 'mystery' funtion given the same inputs.
Enjoy :)
Similar Kata:
Stats:
Created | Mar 31, 2018 |
Warriors Trained | 26 |
Total Skips | 0 |
Total Code Submissions | 76 |
Total Times Completed | 6 |
JavaScript Completions | 6 |
Total Stars | 0 |
% of votes with a positive feedback rating | 17% of 3 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 1 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 3 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |