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 Answer
+ 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