Count of Unique Elements of a Vector
Count the number of times each unique element appears in a vector.
Example:
Input x = [2 9 1 2 4 9 2]
Output y = [1 1; 2 3; 4...
Vector slither sort!
Sort a numeric vector in the following format:
[largest value, smallest value, second largest value, second smallest value, etc...
Caesar Cipher Shift
Given a word and its encrypted version using the caesar cipher, find the shift used.
4年弱 前
解決済み
Sum of 2 numbers in array
Given an array and a target sum, return true if any 2 numbers in the array sum up to the given target sum. Both numbers cannot h...
Momentum Calculation
A shopping cart of mass 'm1' is traveling with velocity 'u' and collides with a second shopping cart of mass 'm2.' The two shopp...
4年弱 前
解決済み
Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5).
If you multiply these two matrices, the resultant matrix w...
Vector of numbers divisible by 3
* Input(n) - any integer
* Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0
Examples:
* n=6...