Generate the first n terms of a periodic sequence defined as
f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6, 7, 8, ...
Back to basics 19 - character types
189 Solvers
Sum of diagonal of a square matrix
1159 Solvers
The sum of the numbers in the vector
341 Solvers
253 Solvers
85 Solvers
Problem Tags