Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order.
Efficiency is the key here...
Draw 'Y'
Draw 'Y' in an x-by-x matrix (where x is odd and x >= 3)
Examples:
x = 3
y = [1 0 1
0 1 0
0 1 0]
x = 5
y = [1...
3 years ago
Solved
La derivada numérica
El concepto de pendiente o inclinación de una función recta es muy intuitivo para cualquier persona. Desde el punto de vista mat...
row-th maximum row elements
Input a is a square matrix of size n*n. Output vector v is of size 1*n. The ith element of output v is the ith largest element o...
Digits Multiplication
Your function should calculate the product of the digits of a positive given integer excluding any zeroes.
Example: the result ...