Liking cljdoc? Tell your friends :D

crossnumber.puzzle


alphabetclj

(alphabet n)

Returns an alphabet of n letters.

Returns an alphabet of n letters.
sourceraw docstring

cartesian-productclj

(cartesian-product spaces)
(cartesian-product spaces coords)

Take the cartesian product of several collections.

Take the cartesian product of several collections.
sourceraw docstring

choose-digitclj

(choose-digit r c)

Chooses a random digit, excluding zero if given the 0th row or column.

Chooses a random digit, excluding zero if given the 0th row or column.
sourceraw docstring

choose-digitsclj

(choose-digits w h)

Returns a randomized h by w matrix with no leading zeroes in any col or row.

Returns a randomized h by w matrix with no leading zeroes in any col or row.
sourceraw docstring

clue-to-hash-mapclj

(clue-to-hash-map clue)

Takes a clue of the form (A)(B^3)(D^2) and turns it into a hash-map of letters to powers.

Takes a clue of the form (A)(B^3)(D^2) and turns it into a hash-map of letters to powers.
sourceraw docstring

clue-to-letter-maxclj

(clue-to-letter-max letter clue length)

Estimates max possible value of a letter based on a single clue.

Estimates max possible value of a letter based on a single clue.
sourceraw docstring

clues-to-alphabetclj

(clues-to-alphabet clues)

Lists all letters present in clues.

Lists all letters present in clues.
sourceraw docstring

clues-to-letter-maxclj

(clues-to-letter-max letter clues length)

Estimates max possible value of a letter (specified by an int), given some hash-map representations of clues and the length of the rows/cols in that direction.

Estimates max possible value of a letter (specified by an int), given some hash-map representations of clues and the length of the rows/cols in that direction.
sourceraw docstring

col-to-intclj

(col-to-int digits c)

Assembles a column into a number.

Assembles a column into a number.
sourceraw docstring

crossnumber-solutionsclj

(crossnumber-solutions row-clues col-clues)

Finds all possible solutions to a given crossnumber puzzle.

Finds all possible solutions to a given crossnumber puzzle.
sourceraw docstring

factorclj

(factor n)
(factor n factors candidate)

Returns a sorted vector of factors of n.

Returns a sorted vector of factors of n.
sourceraw docstring

factors-to-expressionclj

(factors-to-expression factors dict)
(factors-to-expression factors dict expr)

Takes sorted factors and dictionary and turns them into nice algebraic expression.

Takes sorted factors and dictionary and turns them into nice algebraic expression.
sourceraw docstring

int-to-digitsclj

(int-to-digits n)
(int-to-digits n s)

Converts a number into a sequence of digits.

Converts a number into a sequence of digits.
sourceraw docstring

monomialclj

(monomial hm n)

Gives a monomial fn based on a string input and a num of letters.

Gives a monomial fn based on a string input and a num of letters.
sourceraw docstring

primesclj

(primes n)
(primes n ps candidate)

(inefficiently) Gives all the primes less than n.

(inefficiently) Gives all the primes less than n.
sourceraw docstring

row-to-intclj

(row-to-int row)
(row-to-int row n place)

Assembles a row of single-digit ints into a number, most-significant digit first.

Assembles a row of single-digit ints into a number, most-significant digit first.
sourceraw docstring

solves?clj

(solves? row-fns col-fns candidate)

Checks if given tuple solves given row and column functions.

Checks if given tuple solves given row and column functions.
sourceraw docstring

transposeclj

(transpose m)

Returns the transpose of a matrix.

Returns the transpose of a matrix.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close