Resuelto


Assign numerical values to a structure with 1 field
The aim is to assign values to a multidimensional structure *without using for-loop or while-loop* Example with a structure ...

alrededor de 11 años hace

Resuelto


Bang Bang in Bangalore
Imagine a strange language disorder, Bangolangosis, has developed among trigonometricians of <http://en.wikipedia.org/wiki/Banga...

alrededor de 11 años hace

Resuelto


Retirement savings
At the start of what year will you have reached or exceeded a savings goal? Parameters (all are constant scalars given in a s...

alrededor de 11 años hace

Resuelto


Simple Decoder Ring
The stereotypical _decoder ring_ is remembered as a cereal box prize from the 1950s. Kids learned about cryptography by startin...

alrededor de 11 años hace

Resuelto


Rescaling vector
Rescale the entries of a vector x so that it spams [a,b]. The new values should be linearly stretched into the new range. _Ex...

alrededor de 11 años hace

Resuelto


Split a given string from the first instance of a given character
A simple operation to split a given string into two substrings at the point where the desired character is first found. e.g. ...

alrededor de 11 años hace

Resuelto


Look and say Conway's sequence
In mathematics, the look-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, 312211, ...

alrededor de 11 años hace

Resuelto


Put m balls into n boxes (again)
According to <http://www.mathworks.com/matlabcentral/cody/problems/1516-put-m-balls-into-n-boxes Cody Problem 1516>, if I put 3 ...

alrededor de 11 años hace

Resuelto


Finding fourier transform of a given vector
Find the fourier transform of a given input vector for ex a=[1 2 3 4] then y=[ 10.0000 + 0.0000i -2.0000 +...

alrededor de 11 años hace

Resuelto


Matrix spiral
Make a spiral in a (n*n) matrix. The spiral has to start in the top left, and has to rotate clockwise to the center. The spiral ...

alrededor de 11 años hace

Resuelto


Miles to go before I sleep
Recently, my car's odometer passed 56789. Given an odometer reading, output how many miles need to be driven to get the next mi...

alrededor de 11 años hace

Resuelto


Aufbau principle
Given the order e=[1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p], find a vector x with these condi...

alrededor de 11 años hace

Resuelto


factorial of a number x
Factorial of a number x

alrededor de 11 años hace

Resuelto


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

alrededor de 11 años hace

Resuelto


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

alrededor de 11 años hace

Resuelto


Test if a number is numeric or not
Test if a number is numeric or not

alrededor de 11 años hace

Resuelto


Create matrix with Gray code
Output "g" should be a matrix of class double, with <http://en.wikipedia.org/wiki/Gray_code Gray reflected binary code>. Inpu...

alrededor de 11 años hace

Resuelto


Put m balls into n boxes
Can you find all the cases where, if I put 3 balls into 2 boxes the case is 1 1 1 1 1 2 1...

alrededor de 11 años hace

Resuelto


sum of digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 ...

alrededor de 11 años hace

Resuelto


create square matrix of stars.Given z where rows and columns equal to max of z
create square matrix of stars.Given z where rows and columns equal to max of z

alrededor de 11 años hace

Resuelto


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

alrededor de 11 años hace

Resuelto


Calculate the logarithm of number
Calculate the logarithm of number x

alrededor de 11 años hace

Resuelto


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

alrededor de 11 años hace

Resuelto


Guess the Coefficients!
Given a polynomial _p_ known to have positive integer coefficients, deduce the values of the coefficients. For example: ...

alrededor de 11 años hace

Resuelto


Coin Tossing: Probability of Same Heads for N tosses
A pair of physicists toss a coin n times each. What is the probability that they tossed the same number of heads? *Input:*...

alrededor de 11 años hace

Resuelto


Geometry: Find Circle given 3 Non-Colinear Points
*This Challenge is to determine the center and radius of a circle given three non-colinear points.* *Input:* Points *Outpu...

alrededor de 11 años hace

Resuelto


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

alrededor de 11 años hace

Resuelto


Find names/words that start and end with the same letter.
Find names/words (from a string) that start and end with the same letter. * Case-insensitive. * If a name/word is not at the...

alrededor de 11 años hace

Resuelto


Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

alrededor de 11 años hace

Resuelto


Make combination of two given matrices.
Make a combination of the two given matrices as a given example. Example: input1 = [1 2 3; 4 5 6]; input2 = [7 8; 9 10...

alrededor de 11 años hace

Cargar más