Runtime gives different percentage every time ( higher to lower and again higher )



  • Kate

    Hi Ankita Lath,

    Thank you for reaching out to us. It’s a very difficult and ongoing research to evaluate the program’s runtime and get the same value for different runs of the same program. We have tried our best to make sure we isolate your program’s runtime, but there exist a lot of factors that makes it extremely hard to quantify the runtime correctly.

    The significance of program’s runtime we're providing to you is so that you can compare your code with the peaks in the graph, where programs that have different time complexities like O(n), O(n^2) would be around different peaks (at least in most of the cases). Other factors include compiler changes, optimizations, and more features that our developers keep on working on to provide better UX. These factors all also affect the runtime of the same program, introducing some level of discrepancy.

    I hope this explanation answers your doubts. If you have any other questions, please don't hesitate to let us know.



    Comment actions Permalink
  • mindreader

    Hi Kate

    I'm seeing similar issue on my Java submissions with percentile varying between 49% - 99% for the exact same code.

    Comment actions Permalink

Please sign in to leave a comment.