Why is Java faster than C/C++ in runtime distribution?


  • 0
    S

    0_1472570012478_upload-707c3bc5-254d-4e5b-960f-7e3589b92fed
    I bet most C/C++ coders didn't free memory of deleted nodes in their accepted solutions. But Java is still faster than C/C++...


  • 0
    H

    I do not know Java. I also have this question. I guess those who use Java use more built in functions from STL than C++ and C.


Log in to reply
 

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