Write out numbers in words
Write out numbers in words ( range [0-9999] ) with British spelling rules. For example;
* 1 > one
* 56 > fifty-six
* 100 >...
6 years 前
已解决
Rolling maximums above a threshold
You are given either a vector or a 2-D matrix M and a threshold value of t. Write a script that will calculate how many times t...
6 years 前
已解决
Kurchan Square - Evaluation Function
Evaluate a Kurchan square. An NxN square with values 1:N^2.
Given a square matrix determine the products of each row, column,...
6 years 前
已解决
Red and green towers
Frankie has a large number of wooden cubes, painted in red and green. He is building little towers with his cubes, by stacking t...
6 years 前
已解决
Exponents in Factorials
It's time to get excited about numbers!!! Well, we're just dealing with factorials here, but it's still a good reason to get ex...
6 years 前
已解决
Highest powers in factorials
This is the inverse of the problem <https://www.mathworks.com/matlabcentral/cody/problems/44747 Exponents in Factorials>. Inste...
6 years 前
已解决
replace nan values iteratively.
replace nan values with the average of two neighbour non-nan value iteratively as follow;
x = [2; 4; 6; nan; nan; nan; 10];
...
Cannibal eating odd and even numbered men
There are N men in a queue. A cannibal eats either all odd-numbered or all even-numbered men in the queue at a time. In the fi...
Fun with permutations
There are factorial(N) permutations of the numbers from 1 to N. For each of these permutations, we can find the set of indexes j...