0

Merge sort

Does merge sort only work for data which is even in number or it can also sort data which is odd in number?

6th Sep 2020, 4:46 PM
Brian Muchai
Brian Muchai - avatar
1 ответ
+ 1
Yes it can also sort odd amount, it just splits it as close to in half as possible and if the length of array == 1 then that section is considered sorted and returned
6th Sep 2020, 4:54 PM
StealthyTaco
StealthyTaco - avatar
Актуальное сегодня
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes