7 kyu

Chain me

4,653 of 7,810nrgarg
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • jackelycwong Avatar

    The example just has two fs, but it actually has more. Hope this advice can keep yr time >.0

  • xilinxasin Avatar

    This comment has been hidden.

  • lincot Avatar

    Rust description has a typo: x + 30 instead of x * 30

  • Awesome A.D. Avatar

    New Rust translation ready for review.

  • ejini战神 Avatar

    Missing fixed and sample tests in JS of empty array, which could invalidate this solution

  • Quazerix Avatar

    This comment has been hidden.

  • gxcad Avatar

    This comment has been hidden.

  • akar-0 Avatar
  • Glinator Avatar
  • Kacarott Avatar
  • billikw Avatar

    [JavaScript] I don't understand; why are div and sub are thrown into the fs array, when we have no idea what to 'div' or 'sub' by???

  • dimastik Avatar

    This comment has been hidden.

  • romanjhyltsou Avatar

    This comment has been hidden.

  • stellartux Avatar
  • Santiagour Avatar

    This comment has been hidden.

  • JohanWiltink Avatar
  • trashy_incel Avatar
  • user4896126 Avatar

    really nice KATA!

  • Blind4Basics Avatar

    needs random tests (JS at least)

  • eri_pheebs Avatar

    Hi could I please have some help :)

    Basically I noticed that although the test case is this: Test.assert_equals(chain(2, [:add, :mult]), 90, "Error: chain function not working properly")

    With my code the first test works and when I click submit I get 1 passed and one fails: Test Passed: Value == 345.30138755410417 Error: chain function not working properly - Expected: -4.244976874098263, instead got: -4.0

    But I think it is just because the test case doesn't expect the error string to have that second bit of text.

    Sorry if I'm completely wrong! I am super new. But I think my code should work and was wondering if this is the issue?

  • chucklu Avatar

    I can not pass the test with this info. ChainTests ExampleTest Incorrect Value for '2' Expected: 60.0d But was: 360 at ChainTests.ExampleTest () [0x00000] in :0

    so,I just return 60 to test your test case. I still get this info. I am using C# ,so ,you need to check your testcase

    I click submit,then i got this. ChainTests AddDivSubMulTest Error: chain function not working Expected: 60.0d But was: 495.0d at ChainTests.AddDivSubMulTest () [0x00000] in :0 AddDivTest Error: chain function not working Expected: 60.0d But was: 187.5d at ChainTests.AddDivTest () [0x00000] in :0 AddMulTest Error: chain function not working Expected: 60.0d But was: 13950.0d at ChainTests.AddMulTest () [0x00000] in :0 AddSubTest Error: chain function not working Expected: 60.0d But was: 550.0d at ChainTests.AddSubTest () [0x00000] in :0

    I think you mess up expected and the result.

  • kekrastev Avatar

    This comment has been hidden.

  • tetreault Avatar

    IMO calling this chaning is kind of inaccurate or confusing, thinking of method chaining in the jquery sense.

  • mcshakes Avatar

    This comment has been hidden.

  • Insti Avatar

    There are too many tests, 350 is excessive! 6 is enough.

    The initial skeleton should provide a function signature.

  • wthit56 Avatar

    Could use some more (random?) tests, but other than that, works just fine.