Create n x 2n "mirror" matrix of this type:
Examples
For n = 2
m = [ 1 2 2 1 1 2 2 1 ]
For n = 3
m = [ 1 2 3 3 2 1 1 2 3 3 2 1 1 2 3 3 2 1 ]
This problem was fun. I was able to find a better way to solve beat my own solution. Not the best way though. But lot better.
Make the vector [1 2 3 4 5 6 7 8 9 10]
29430 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
782 Solvers
Convert a vector into a number
442 Solvers
688 Solvers
236 Solvers