This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " vim:foldmethod=marker | |
| "" | |
| "" init.vim -- Configuration | |
| "" | |
| if &compatible | |
| set nocompatible | |
| endif | |
| " {{{ Plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 39 | |
| 89 | |
| 23 | |
| 39 | |
| -70 | |
| -19 | |
| -12 | |
| -62 | |
| 85 | |
| -55 |