Chain multiplication - 02
Following up on the problem in 55295, you found the number of multiplications needed to multiply two matrices.
Now, you are giv...
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...
9ヶ月 前
解決済み
Mersenne Primes vs. All Primes
A Mersenne prime (M) is a prime number of the form M = 2^p - 1, where p is another prime number. <https://www.mathworks.com/matl...
Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...
row removal
Consider a matrix and remove the first row of the matrix.
9ヶ月 前
解決済み
Column Removal (★★★)
(copy of prob 7)
Remove the nth column from input matrix A and return the resulting matrix in output B.
So if
A = [1 2...
9ヶ月 前
解決済み
Reference Index Number
Given a reference set R of elements (each unique but identical in type), and a list V of elements drawn from the set R, possibly...
9ヶ月 前
解決済み
List the emirps
An emirp is a prime number that becomes a different prime when reversed. The numbers 13, 17, and 149 are emirps, but 11, 19, and...
Compute the nth Pythagorean prime
Pythagorean primes have the form p = 4n+1, where n is an integer, and they can be written as the sum of squares of two integers....