Un vector es considera especial si cada parell dels seus elements
adjacents conté dos nombres amb paritat diferent.
Feu una funció vector-especial? que, donat un vector
d’enters
,
retorna
si
és un vector especial, en cas contrari, retorna
.
No podeu fer servir ni recursivitat ni loop/recur.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.