Hi there, I have implemented various programming language to solve Merge two sorted list using Rust, Scala, Java and Python.
But I am surprising that Scala is much slower than python! At first following this post I thought that it may be because of JVM slow startup and warmup time.
So, I decide to quick implement the Java code with almost exactly the same implementation in Scala. But the result still shows that Scala is the slowest one!
What is the cause of this? Or the leetcode engine is different between Java and Scala?
