Vector addition
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...
9年以上 前
解決済み
Unique: Speed Enhancement for uint(8,16,32)
This Speed Performance Challenge is to optimize Unique for processing uint8/uint16/uint32 variables.
*Input:* A (column vecto...
9年以上 前
解決済み
Select every other element of a matrix
Write a function called
outMat = odd_idx( myMat )
that takes a matrix, myMat, as input argument and returns a matrix th...
Cubic Integer Constrained Solution
Find an integral non-trivial solution (x,y,z ~=0)
(x=0 or y=0 or z=0 are trivial)
for the cubic equation
987,654,321x + ...
iteration of N blank spot
we have N spot which can be blank o filled
calculate the number of iteration for these spots.
e.g. N=2
1- blank blank
2- bl...
9年以上 前
解決済み
Prime number removal
remove all prime numbers from the input
e.g.
input =
1 2 3 4 5 6 7 8 9 10 11 12 ...
9年以上 前
解決済み
Calculating selling price
Cost of a Product is $x
What should be the selling price if you want to gain 10%?
9年以上 前
解決済み
Calculating cost
You sold a Product at $x and gain 10%
What was the cost of the product?