/tdd-project

An exercise in TDD

Primary LanguageClojureOtherNOASSERTION

tdd-project

Pair programming to practice TDD. Solving the circular numbers problem:

Construct a square matrix with a size N × N containing integers from 1 to N * N in a spiral order, starting from top-left and in clockwise direction.

Example

For n = 3, the output should be

solution(n) = [[1, 2, 3], [8, 9, 4], [7, 6, 5]] Input/Output