Ad
  • Custom User Avatar

    I'm glad you enjoyed!

  • Custom User Avatar

    Give it a try now, should be fixed.

  • Custom User Avatar
  • Custom User Avatar

    Is there anything else I can do to get this Kata approved?

  • Custom User Avatar

    sorry for the slow reply, I added import re, let me know if its still not working.

  • Custom User Avatar

    Updatded!

  • Custom User Avatar

    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.

  • Custom User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    Approved!

  • Custom User Avatar
    scramble("abcd",[0,3,1,2]) -> should return "adbc"
    

    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?

  • Custom User Avatar

    I keep getting "Description cannot be approved, recent changes from related record must be merged first." when i try to approve this one. Ideas?

  • Custom User Avatar

    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?

  • Custom User Avatar

    Ok, I think the random tests are now working properly.

  • Custom User Avatar

    Awesome!

  • Loading more items...