Ad
  • Custom User Avatar

    Thank you. Looking into this.

    Edit: The random test has actual and expected arguments swapped: the "Expected" is what your algorithm returned. So, I'm sorry for the confusion and will look into correcting this.

    Also, the area numbers employed are 64-bit signed integers and 1783715193 fits in just over 30 bits, and the real expected number 9898996673 comes in just over 33 bits. (Determined by taking log-base-2)

    Since the real issue appears to be that I swapped expected & actual parameters to NUnit's assert, the message is incorrect but the result still appears correct. If codewars will permit, I will try to correct the test code AND add code to prevent the possibility of overflow -- neither of which should impact anyone currently with a correct solution.

  • Default User Avatar

    Dart language import not working;