Number Puzzles - 004
Give an example of three distinct numbers greater than 10 whose both product and sum are palindromes. The answer is not unique a...
6일 전
해결됨
Number Puzzles - 003
Find six non-zero integers a, b, c, d, e, and f which satisfy the following equations:
All six integers must be different. Th...
Would Homer Like It?
Given a matrix of ones and zeros, you must determine if there are any doughnuts present (would Homer Simpson like it?). A doughn...
10일 전
해결됨
Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?
10일 전
해결됨
String math
You will be given a string that describes a simple math equation. Your job is to determine if the value of the equation is equal...
10일 전
해결됨
Mean ignoring NaNs
Define a function that behaves in the same way as mean(x) and mean(x,d) except that it ignores NaNs (unless all of the values be...
10일 전
해결됨
Spiral Out - 01
Create a spiral matrix ( clock-wise direction ) of size n.
Try to do that without using the built-in function.
Please check the last row
We have data of matrix, that is input.
That contains 2 or more rows and the last row should contain the average of each column,...
Be happy
check whether the given number is happy in b-base.
* A happy number can be defined as a number which will yield 1 when it is ...
17일 전
해결됨
Bell Triangle
Form the bell triangle upto nth bell number posotion;
* if n=5
*
y= [1 0 0 0 0;
1 2 0 0...
27일 전
해결됨
Integer complexity (Large numbers)
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/42831-integer-complexity Problem 42831>, this problem aims to ...