Shuffle a vector by breaking it up to segments of n elements, and rearranging them in a reversed order.
For example, the vector:
vector = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
should be shffuled by segments of n=3 like so:
cetvor = [8,9,10, 5,6,7, 2,3,4, 1]
The shuffled vector should have the same dimensions as the original one.
Calling the two sub-functions the right way will not hurt your score. Great work though. :)
Remove all the words that end with "ain"
1027 Solvers
Remove the small words from a list of words.
474 Solvers
Test if a Number is a Palindrome without using any String Operations
157 Solvers
Get the length of a given vector
1360 Solvers
386 Solvers
Solution 1487349
"cat" is a really nice touch for concatenation of those arrays! your solutions never fail my expectation.
by the way, i saw that "sub-func" comment...:)