Community Profile

# bainhome

### NEU

2 939 total contributions since 2013

View all

Contributions in
View by

Solved

Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

ungefär en månad ago

Solved

Times 3
Try out this test problem first. Given the variable x as your input, multiply it by three and put the result in y. Example...

Solved

Mo money, mo math 1! (★★★)
(adapted from Prob 9 Cody team) You have a vector where the elements represent the number of \$20 bills, \$10 bills, \$5 bills, ...

Solved

Times 11
Try out this test problem first. Given the variable x as your input, multiply it by eleven and put the result in y. Exampl...

Solved

DETERMİNE bigger input
which one is biigger x or z

Solved

Calculate the volume of a cone
Calculate the volume of a cone given an array containing one column of radii and one column of the height of the cone. * Reme...

Solved

How many apple
You have x apples I take from you y apples now how many apples you have ?

Solved

Find the y=(1:x)
Look at the question

Solved

How tall are you?
measures your height forexample= 175cm 180cm 169cm

Solved

Times 5
Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

Solved

Pentagonal dodecahedron
<<https://upload.wikimedia.org/wikipedia/commons/7/73/Dodecahedron.gif>> Pentagonal dodecahedron is a dodecahedron that is ...

Solved

Sum 1 to 100 even number
Write a Matlab program to add all the even numbers from 0 to 100 |

Solved

Power Numbers
Find the n-th power of m.

Solved

Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...

Solved

Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...

Solved

Fill a zeros matrix (★★★★★)
(Copy of Problem 830) The aim is to fill an array of all zeros given a numerical value and the index of row and columns for t...

Solved

Doubling elements in a vector (★★)
(copy of prob. 1024) Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] t...

Solved

Mo money, mo math #2! (adapted from Prob 9 Cody team)
You have a matrix for which each row is a person and the columns represent the number of quarters, dimes, nickels and pennies th...

Solved

Prime number check
One way to see if a number x is prime is to compute the remainders obtained when dividing x by all integers from 2 to √(x). If x...

Solved

Sum of terms in a series 1
Given x and n, compute the following sum: |x|+|x|^(1/2)+|x|^(1/3)+|x|^(1/4)+|x|^(1/5) ... + |x|^(1/n) where ||x|| indica...

Solved

Sort even numbers from 1 to 100
Sort even numbers from 1 to 100 for ex: x=1:100

Solved

How many points lie within the rectangle and how many aren't?
Suppose, you are given the coordinates of bottom-left and top-right corners of a rectangle as *input-1, R* i.e *R=[Bottom-left c...

Solved

Find the next binary palindrome number
We all know, a *palindrome* is nothing but a number or character which remains the same after the forward or backward alteration...

Solved

Find the absolute value of c=a-b
Find the absolute value of c=a-b

Solved

Number of lattice points within a circle
Find the number of points (x,y) in square lattice with x^2 + y^2 =< n. This is related to Jame's <http://www.mathworks.com/matla...

Solved

Minimum Distance Point to Segment
This Challenge is to determine the minimum distance from a 2-D line segment defined by two points to a point. The point is (p...

Solved

Create a matrix that counts up diagonally
Given a single input _N_, create a _N_ x _N_ matrix that counts from 1 : _N_ ², (along up-right diagonals, starting with 1 in th...

Solved

Beads on a Necklace (Convex Hulls)
We may describe a <http://en.wikipedia.org/wiki/Convex_hull convex hull> as a rubber band stretched around a list of points. Som...

Solved

Portfolio diversification: choose your stocks !
we have the returns of 3 stocks for the last 4 years and we have to combine only 2 stocks that are less correlated. Example: ...