Derek Peirce
12/29/2025, 8:12 PMArrays.binarySearch has no such overhead.
Even apart from that, some problems take vastly longer in Kotlin and I can't find a reasonable explanation. In Number of Islands, for example, my Kotlin solution will take 150-200ms, but if I decompile the Kotlin bytecode back into Java and remove the few Intrinsics calls, suddenly it only takes 6ms. I've found no explanation within Kotlin for that kind of slowdown, and it's inconsistent between problems, so I suspect something's wrong with how the test runner is set up for Kotlin compared to Java.ephemient
12/30/2025, 1:03 AMDerek Peirce
12/30/2025, 7:49 AMmin methods.