Self-similar integer sequences are certain sequences that can be reproduced by extracting a portion of the existing sequence. See the OEIS page for more information.
In this problem, you are to check if the sequence is self-similar by every other term. The problem set assumes that you use the easiest route: take the first element and then every other element thereafter of the original sequence, and compare that result to the first half of the original sequence. The function should return true if the extracted sequence is equal to the first half of the original sequence.
For example,
Since seq_every_other = seq_orig_first_half, the set is self-similar.
This problem is related to Problem 3011 and Problem 3012.
what do u mean by every other element?
201 Solvers
Calculate the area of a triangle between three points
317 Solvers
Detect a number and replace with two NaN's
159 Solvers
Remove entire row and column in the matrix containing the input values
125 Solvers
167 Solvers