isLessThanBytes static method
Whether a is lexicographically less than b.
Implementation
static bool isLessThanBytes(List<int> a, List<int> b) {
for (int i = 0; i < a.length && i < b.length; i++) {
if (a[i] < b[i]) {
return true;
} else if (a[i] > b[i]) {
return false;
}
}
return a.length < b.length;
}