Solved

Combined Ages 2 - Symmetric, n ≥ 3

Following on <http://www.mathworks.com/matlabcentral/cody/problems/42382-combined-ages-1-symmetric-n-3 Combined Ages 2>, you wil...

17 giorni ago

Solved

Combined Ages 1 - Symmetric, n = 3

You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...

17 giorni ago

Solved

Combined Ages 4 - Non-symmetric with multiples, n ≥ 3

This problem is slightly more difficult than <http://www.mathworks.com/matlabcentral/cody/problems/42383-combined-ages-3-non-sym...

17 giorni ago

Solved

Integer complexity (Large numbers)

Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/42831-integer-complexity Problem 42831>, this problem aims to ...

17 giorni ago

Solved

Long-digit Subtraction

Suppose you need to subtract a very large integer from another integer. <http://www.mathworks.com/matlabcentral/cody/problems/56...

17 giorni ago

Solved

Give prime Numbers upto n

You are given a input number x; print all the prime numbers less than equal to x.

18 giorni ago

Solved

Linear system solve

Solve a linear set of equations as described in the following link: http://www.people.virginia.edu/~teh1m/cody/linsolv1.pdf

18 giorni ago

Solved

Calculate distance travelled when given radius and rotations

When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

18 giorni ago

Solved

Count the non-zero elements along the diagonals that are immediately next to the main diagonal

Suppose, you are being told to write a matrix, *a* as input in MATLAB with having the possibility of containing zero and non-zer...

18 giorni ago

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...

18 giorni ago

Solved

Fibonacci Word

F1='0' F2='1' F3 is the catenation of the previous two. So, F3 = cat(F2,F1)='10'. similarly, F4 = cat(F3,F2...

18 giorni ago

Solved

Area-06

The length of the side of a square is given. Draw 4 quarter-circles inside the square from 4 corners with a radius equal to t...

18 giorni ago

Solved

Find the remainder - 02

Given an array of integers, find the remainder when the summation of all the elements is divided by N

18 giorni ago

Solved

Distances in a circle

A circle (360°) is given and a row of 6 monotonic increasing numbers with the which difference from last to first value is les...

20 giorni ago

Solved

Find the position of last minimum value in an integer array with numbers

If x = [2 6 4 9 -10 3 1 5 -10] then the output should be 9, because last minimum value (-10) lies at the 9th position.

21 giorni ago

Solved

Find the position of first minimum value in an integer array with numbers

If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

21 giorni ago

Solved

average for three points

how to calculate the average (for each three values of y) y=[2 3 5 3 4 2 3 4 5 3 2 7 8 6 5 5 4 3 3 3 2 ] you ...

22 giorni ago

Solved

AK Sorting according to given order

Conventional ascending order of one digit number is [ 0, 1, 2, ......9]. Now this order is changed and stored in vector a. For e...

22 giorni ago

Solved

Basics: Divide integers to get integer outputs in all cases

Divide integers a and b in such a way that output y is always an integer (in ceil manner)

22 giorni ago

Solved

Vector slither sort!

Sort a numeric vector in the following format: [largest value, smallest value, second largest value, second smallest value, etc...

22 giorni ago

Solved

Polybius Square

Given a string, calculate the coordinates. Input will be always in lowercase. If string is a sentence then use 0 (zero) to indic...

22 giorni ago

Solved

Ridge regularized linear regression

Given a predictor data matrix of size , target variable vector of size and a shrinkage factor (scalar) (ridge regularization...

22 giorni ago

Solved

Who has power to do everything in this world?

There is only one person who is older than this universe. He is Indian version of Chuck Norris.

22 giorni ago

Solved

My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.

given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

22 giorni ago

Solved

String Logic 14

Examples: 'DIG' --> 'HRN' 'KIMBALL' --> 'VRZDBXX' 'DEAL' --> 'HJBX' 'LIMB' --> 'XRZD' 'MADE' --> 'ZBHJ' 'CHEF' --> 'FPJL'

22 giorni ago

Solved

Cos Function

x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

22 giorni ago

Solved

Wheat on a chessboard pt 1

If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...

22 giorni ago