This seems to be a common confusion, I added a little more to the description to make it a bit more clear.
"a" = 0;
"b" = 3;
"c" = 1;
"d" = 2;
The array is giving the location that the character at it's corresponding index should be at in the returned string. In other words, put the first character in the string at the index described by the first element of the array.
lol good to know I'm not Hitler. I took your advice and changed the kata. It now takes an array and is looking for the GCF of all numbers in that array. I'll be sure to expand my searches before publishing my next kata.
Searching available kata for "greatest common factor", "gcf", or similar terms under JavaScript did not yeild any results, so I thought that making this would add to the community.
Your job is to rearrange the given string to be in the order described by the accompanying array.
The string that you will be returning back will have: 'a' at index 0, 'b' at index 3, 'c' at index 1, 'd' at index 2, because the order of those characters maps to their corisponding numbers in the index array.
Meaning, in your new string, str[0] will be at index arr[0].
I was able to easily approve your CoffeeScript and Crystal translations, but keep getting
"Description cannot be approved, recent changes from related record must be merged first."
when i try to approve the Ruby translations.
Any idea why this might be?
I'm glad you enjoyed!
Give it a try now, should be fixed.
approved!
Is there anything else I can do to get this Kata approved?
sorry for the slow reply, I added import re, let me know if its still not working.
Updatded!
This seems to be a common confusion, I added a little more to the description to make it a bit more clear.
"a" = 0;
"b" = 3;
"c" = 1;
"d" = 2;
The array is giving the location that the character at it's corresponding index should be at in the returned string. In other words, put the first character in the string at the index described by the first element of the array.
lol good to know I'm not Hitler. I took your advice and changed the kata. It now takes an array and is looking for the GCF of all numbers in that array. I'll be sure to expand my searches before publishing my next kata.
Thanks for the feedback!
Searching available kata for "greatest common factor", "gcf", or similar terms under JavaScript did not yeild any results, so I thought that making this would add to the community.
Approved!
Your job is to rearrange the given string to be in the order described by the accompanying array.
The string that you will be returning back will have: 'a' at index 0, 'b' at index 3, 'c' at index 1, 'd' at index 2, because the order of those characters maps to their corisponding numbers in the index array.
Meaning, in your new string, str[0] will be at index arr[0].
Does that help?
I keep getting "Description cannot be approved, recent changes from related record must be merged first." when i try to approve this one. Ideas?
I was able to easily approve your CoffeeScript and Crystal translations, but keep getting
"Description cannot be approved, recent changes from related record must be merged first."
when i try to approve the Ruby translations.
Any idea why this might be?
Ok, I think the random tests are now working properly.
Awesome!
Loading more items...