What take more time...?🙆 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What take more time...?🙆

It has been a while I'm suffering from this question.. I would like to know what method take most time to sort.. is it Arrays.sort(); function in java or just two for loops..

23rd Dec 2018, 2:22 AM
Yasas Sandeepa
Yasas Sandeepa - avatar
2 Answers
+ 1
i think the Arrays.sort() method is more efficient
23rd Dec 2018, 3:48 AM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
0
Mind To Machine 🤖😎 Bro how to prove that it is more efficient
26th Dec 2018, 10:12 AM
Yasas Sandeepa
Yasas Sandeepa - avatar