Skip to content

Instantly share code, notes, and snippets.

function CreateSequence(encodeLen, alphabetLen) {
let sequence = [Math.pow(10, encodeLen)]
for (let i = 1; i <= encodeLen; i++) {
sequence.push(
sequence[i-1] +
Math.pow(10, encodeLen - i) * Math.pow(alphabetLen, i)
);
}
function getMaxMin(array) {
let min
let max = Number.MIN_VALUE
if (array.length > 0) {
min = Math.min(array[0], array[array.length - 1])
}
return { max: getMax(array, max), min: min }
" vim:foldmethod=marker
""
"" init.vim -- Configuration
""
if &compatible
set nocompatible
endif
" {{{ Plugins
39
89
23
39
-70
-19
-12
-62
85
-55