Ad
  • Custom User Avatar

    I hope this makes sense to me someday

  • Custom User Avatar

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

  • Custom User Avatar

    Not sure if this has been requested before, but I'd love to see the Elm language supported! http://elm-lang.org/

  • Custom User Avatar

    Would love to see Elm supported!

    http://elm-lang.org/

  • Custom User Avatar

    Can you clarify what is meant by "Subarrays must be distinct" in the hidden tests? I'm passing 14 tests but failing 4, and this message is showing up 3 times.

    Perhaps relatedly, does this have anything to do with why I'm failing Test.expect(d2[0].toString()!=d2[1].toString()) in the visible tests?
    I can't for the life of me figure out why running d2[0][0][0]="A"; should turn my d2 into
    [ [ [ 'A', 0, 0 ], [ 'A', 0, 0 ] ], [ [ 'A', 0, 0 ], [ 'A', 0, 0 ] ], [ [ 'A', 0, 0 ], [ 'A', 0, 0 ] ] ], but that's what's happening.

  • Custom User Avatar

    This assumes you're implementing a sort function for methods based on "discriminators", and tells you what to do if the discriminators are the same.

    (I think)

  • Custom User Avatar

    Should it be considered cheating to "Unlock Solutions" for, say, Python, and then translate that to another language (say, Javascript)? Are the differences between languages significant enough for this to count as a challenge?

  • Custom User Avatar

    The instructions are not idiomatic English, and aren't really that clear.

    "We need to write some code to return the original price of type decimal, having discounted price and sale value handy of type decimal as well, original price must be rounded to two decimal places."

    How about:

    You always buy things on sale. You are usually pretty good with your accounting, but this month you forgot to write down the original prices of some of your purchases. Given a discounted price and a discount percentage, write some code to return the original price (to two decimal places).

  • Custom User Avatar

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

  • Custom User Avatar

    Probably because the test cases for submission are different.

  • Custom User Avatar

    Some possible tests, if anyone is lost (as I was):

    var 
    f = Node("f", []),
    g = Node("g", []),
    h = Node("h", []),
    e = Node("e", [g]),
    d = Node("d", [f, g, h]),
    a = Node("a", [d]),
    b = Node("b", [d, e]),
    c = Node("c", [e, h]);
    
    Test.expect(getRoute(d,f), 'getRoute(d,f) should have been true');
    Test.expect(getRoute(a,f), 'getRoute(a,f) should have been true');
    Test.expect(getRoute(b,f), 'getRoute(b,f) should have been true');
    Test.expect(getRoute(c,g), 'getRoute(c,g) should have been true');
    Test.expect(getRoute(b,d), 'getRoute(b,d) should have been true');
    Test.expect(getRoute(c,h), 'getRoute(c,h) should have been true');
    Test.expect(getRoute(e,g), 'getRoute(e,g) should have been true');
    Test.expect(getRoute(b,d), 'getRoute(b,d) should have been true');
    Test.expect(!getRoute(d,a), 'getRoute(d,a) should have been false');
    Test.expect(!getRoute(c,f), 'getRoute(c,f) should have been false');
    Test.expect(!getRoute(a,e), 'getRoute(a,e) should have been false');
    
  • Custom User Avatar

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