This is a map of the USDA commuting zones, which are collections of counties last modified in 2000.
This file contains 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 generateSequences(n, k) { | |
var sequences = []; | |
function getSequences(n, k, sequence) { | |
// calculate the highest possible value of a number, such that it leaves at least enough left over to fill the rest with 1s | |
var upper = n - k + 1; | |
for (var c = 1; c <= upper; c += 1) { | |
var sub_sequence = sequence.slice(0); | |
sub_sequence.push(c); |
OlderNewer