Seems that there is something wrong with Java solution running time.


  • 0
    D

    The running time of Java solutions for this problem is as fast as C solutions. I've checked running time distribution of a dozen other problems and found that Java solutions are all at the same level as those of C solutions.

    As I remember, C solutions are much faster than CPP solutions. CPP solutions are much faster than Java solutions. So, is there anything wrong here?

    Black: C

    Brown: Java

    Running time of C Solutions vs. Java solutions


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.