Ad
  • Custom User Avatar

    Error in the instructions:

    objectToArray({2:5, 9:1}) => [2, 2, 2, 2, 2, 99]
    

    It should read:

    objectToArray({2:5, 9:1}) => [2, 2, 2, 2, 2, 9]
    
  • Custom User Avatar

    An error in the test cases prevents a valid solution:

    var obj = {none:0, nada:0, rien: 0};
    Test.assertSimilar(objectToArray(arr),[]);
    

    It should read:

    var obj = {none:0, nada:0, rien: 0};
    Test.assertSimilar(objectToArray(obj),[]);
    
  • Custom User Avatar

    Accepted, thank you

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Marking this resolved, since I don't see the need for another test case.

  • Custom User Avatar

    Would you explain what "some submitted solutions fail" means, and how that failure is caused by an uppercase vowel in the string? I'll be happy to add another test case if it's warranted, but I still don't understand your original comment.

  • Custom User Avatar

    I don't understand — would you explain in more detail?

  • Custom User Avatar

    Great. I attempted to do the same yesterday evening but for some reason was unable to re-publish.

    I'm marking this resolved. Would it be worthwhile for me to incorporate numerals and underscores etc. into the remaining random tests, or would that be overkill?

  • Custom User Avatar

    Great, thanks. Both are approved now.

  • Custom User Avatar

    Thanks! I see that the Haskell translation includes an additional test (of string helLo wtuorli) to make sure all five vowels are covered; but I don't see the same test added in the CoffeeScript translation. (Clever solution on the latter!)

    Attempted to approve both translations, got error Description cannot be approved, recent changes from related record must be merged first.

  • Custom User Avatar

    At @Insti's suggestion, I added one additional test to my previous version, to make sure all five vowels are covered. (That test string is XaeiouX.) You could also add that if you want.

  • Custom User Avatar

    Now using s instead of str in Python. Also added random tests for JavaScript, Python, and Ruby. Thanks!

  • Custom User Avatar

    Added random tests for JavaScript, Python, and Ruby. Thanks!

  • Custom User Avatar

    Added static test including all five vowels for JavaScript, Python, and Ruby. Also added random tests for JavaScript, Python, and Ruby. Thanks!

  • Custom User Avatar

    Now using s instead.

  • Loading more items...