compare static method
Implementation
static int compare(List<int> l, List<int> r) {
if (l.length < r.length) {
return -1;
}
if (l.length > r.length) {
return 1;
}
for (var i = l.length - 1; i >= 0; --i) {
if (l[i] < r[i]) {
return -1;
}
if (l[i] > r[i]) {
return 1;
}
}
return 0;
}