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

  • 0

    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

    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.