Area of a regular hexagon
Given the length of a side of a regular hexagon, return its area rounded to two decimal places.
3 years ago
Solved
attenuation
A beam of X-rays propagates a length d(1) through a medium with an attenuation coefficient alpha(1). After that the beam propaga...
3 years ago
Solved
Sort Except Zeros
Sort the numbers in a vector. But the position of zeros should not be changed.
Example: sort_except_zeros( [5 3 0 0 2 4] ) == [...
3 years ago
Solved
Greed is good - Simple partition P[n].
Find a simple partition P[n]. E.g. P[10] = 4 + 3 + 2 + 1.
There are many solutions, compute just one set.
Don't repeat numbers...
Compute circular convolution
In signal processing, we usually encounter the circular convolution case. Compute it here using the two input sequences (denoted...
Form Blocks in a 1D array
Lets say I have an array of size (10,1);
I want to divide it into the num number of blocks which are given by user
no_of_b...
3 years ago
Solved
Percentage profit:3
x% product is sold at r1% profit. However, our target overall profit is rt%. What is the required percentage profit to meet the ...
3 years ago
Solved
Tribute to Ramanujan
The nth taxicab number, denoted as T(n), is defined as the smallest number that can be expressed as a sum of two positive algebr...
Compute average gain for some bets.
Given a vector containg the odds of some events in decimal format (e.g., |odds=[1.3 2.5 1.5]| ) and a vector of the same dimensi...
3 years ago
Solved
Who have the chance?
Obtain a free 10 score in cody, if you have a chance don't change anything if you want to try or do what you can do to gain for ...