Ad
  • Custom User Avatar

    Well I would assume that your output is different from the correct result at position [0][1], meaning first row, second column,
    but im not 100% sure.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Thank you very much for this elaborate code!!

    It helps so much, thank you a lot !

  • Custom User Avatar

    Actually a nice Kata, i appreciate every (differential) equation solver stuff here on codewars, but the focus on that weird error calculation combined with that truncating makes this kata a rather painful experience.

    After i wrote my code I was pretty sure that the Euler worked as intended, but the tests failed, so i just plotted the results and compared it to the solution of many different ODEs and the Euler solver was correct.

    Maybe one could omit this weird truncating in this exercise to make this kata more pleasant.

  • Custom User Avatar

    The problem was that the 3rd test-case caused my while-loop to run infinitely, all other test-cases were fine,
    and i was surprised that the first 2 test-cases were not shown as "successfully tested" because the 3rd test timed-out.
    thank you and im sorry !

  • Custom User Avatar

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

  • Custom User Avatar

    Wow, thanks for the reply! I didnt know other people can see my solution, that's embarrassing for me :D

    You are completely right, i took out all the unnecessary lines and it only took 11086 ms, so almost a whole second below the 12 s.

  • Custom User Avatar

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

  • Custom User Avatar