Ad
  • Default User Avatar

    Resolved! :)

  • Default User Avatar

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

  • Default User Avatar

    I can run my code on visual studio and it works fine but when inserting into the kata to do the tests I'm getting an index out of range error on the codewars website. Does anyone know what the problem might be (other than the obvious index out of range...), and why there might be a difference between the website and my IDE? I'm genuinely stumped here and would love to know what I'm doing wrong... I will post my code below in the comments if anyone can help a dumbass like me out...

  • Default User Avatar

    Wow! You are all so much cleverer than me..! My solution involved making a weight class and everything... Glad I completed it :) now seeing your answer has given me a much better understanding of how it could be done more effectively. Thanks :)

  • Default User Avatar

    Wow! Timespan! Faceplant into hand! What an idiot I am! Always learn something new from others code... Thanks :)