Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -0,0 +1,10 @@
|
|||
function lex_sort(n) {
|
||||
let a = [];
|
||||
const lims = n > 0 ? [1, n] : [n, 1];
|
||||
for (let i = lims[0]; i <= lims[1]; i++) {
|
||||
a.push(i);
|
||||
}
|
||||
return a.toSorted();
|
||||
}
|
||||
|
||||
console.log(lex_sort(13));
|
||||
Loading…
Add table
Add a link
Reference in a new issue