0

Time for combining arrays

How long does Ruby combining two arrays in one? In C++ that’s const time while Java does it for n time. Thank you.

9th Sep 2019, 4:47 AM
Евгений Смирнов
Евгений Смирнов - avatar
1 Odpowiedź
+ 1
It's obvious that ruby isn't as fast as C++ but it can hardly have a worse complexity that O(n)
9th Sep 2019, 6:55 AM
Aaron Eberhardt
Aaron Eberhardt - avatar