JavaCompilerCore/app/resources/bytecode/javFiles/Merge.jav
2023-01-10 14:22:05 +01:00

20 lines
302 B
Java

import java.util.List;
import java.lang.Integer;
//import java.util.Collection;
class Merge {
merge(a, b) {
a.addAll(b);
return a;
}
sort(in){
var firstHalf = in.subList(1,2);
var secondHalf = in.subList(1,2);
return merge(sort(firstHalf), sort(secondHalf));
}
}