Ad
  • Custom User Avatar

    markdown tip: you can start a line with > to make it a quote, looks much better than inline code.

    this is how it looks

  • Custom User Avatar

    Not an issue! I've just tested your solution and it timed out. Clearly you need to optimize your solution and read this in description --> Tips: efficiency and trying to figure out how it works are essential: with a brute force approach, some tests with larger numbers may take more than the total computing power currently on Earth to be finished in the short allotted time.

  • Custom User Avatar

    Post under the c# translator comment, so that he can get notified :)!

  • Default User Avatar

    Solving in C# - fairly confident I have a somewhat optimal solution. When I run tests I get the following output:

    Test Results:
      TotalIncDecTests
      BasicTests (1 Passed, 0 Failed)
    You have passed all tests! :)
    

    However, when I click submit I get the following error:

    Test Results:
      TotalIncDecTests
      BasicTests
     System.ArgumentNullException : Value cannot be null.
    Parameter name: destinationArray
     Completed in 2.431534ms
      RandomTests
     System.ArgumentNullException : Value cannot be null.
    Parameter name: destinationArray
     Completed in 2.121ms
    

    No idea what that's about or where this destinationArray parameter is coming from. Why would BasicTests error out when I submit but pass when I run tests?