4 ms·
Luckily for us, we don't need to actually understand this C++ code to use AVX 512 for faster sorting. We can just do Arrays.sort(arr) in Java!
by xmcqdpt2 3y ago
Luckily for us, we don't need to actually understand this C++ code to use AVX 512 for faster sorting. We can just do
Arrays.sort(arr)
in Java!
- re-thc 3y agoBut then people say it's too verbose. Maybe it needs to be: A.s(arr)
- tialaramex 3y agoarr.sort() or sort(arr) seem reasonable to me
- kaba0 3y agoYou can static import Arrays.sort, so the second option could work.