Matrix convolution
A certain convolution step involves an elementwise multipication between two 3x3 matrices and taking the resulting sum of the el...
3年以上 前
解決済み
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...
3年以上 前
解決済み
Fun with matrix
Design a sample matrix as given in the test cases
Définir une fonction creneau
Definr une fonction "creneau" qui prend en entrée un vecteur et renvoie la valeur 1 pour chaque élément positif du vecteur et...
Cancel Middle
Write a function called cancel_middle that takes A, an n-by-m
matrix, as an input where both n and m are odd numbers an...
3年以上 前
解決済み
Dominant Matrix - 01
A matrix is said to be diagonally dominant if for every row of the matrix, the magnitude of the diagonal entry in a row is large...
3年以上 前
解決済み
Which Prime
Given two prime numbers, specify the relation between them i.e. -
'Twin Prime', 'Cousin Prime', 'Sexy Prime' or 'None'
Digits Multiplication
Your function should calculate the product of the digits of a positive given integer excluding any zeroes.
Example: the result ...
Sum of Arithmetic Progression
Given the starting number, difference and the number of terms - find the sum of the arithmetic progression.
3年以上 前
解決済み
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...