Resuelto


Count number of words in string
Count number of words in string E.g. 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

más de 11 años hace

Problema


Count number of words in string
Count number of words in string E.g. 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

más de 11 años hace | 2 | 188 solvers

Resuelto


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


Make a Star Pyramid
Create a star pyramid. First line will have 1 star, second will have two stars and so on... a basic program which is easily done...

más de 11 años hace

Resuelto


Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

más de 11 años hace

Resuelto


Size of this cup?
The given vector has diameter of the cup in mm sampled at micrometer increments in depth from top to bottom, need output in cc a...

más de 11 años hace

Resuelto


"Low : High - Low : High - Turn around " -- Create a subindices vector
Let two vectors *lo* and *hi* be given. The job is to create a index vector like so idx = [lo(1):hi(1) lo(2):hi(2) ...]...

más de 11 años hace

Resuelto


Figurate number triangle
Check whether the input matrix is a figurate number triangle: <http://mathworld.wolfram.com/FigurateNumberTriangle.html>

más de 11 años hace

Resuelto


Triangle Numbers Below N
This is an offshoot of <http://www.mathworks.com/matlabcentral/cody/problems/5-triangle-numbers Cody Problem 5: Triangle Numbers...

más de 11 años hace

Resuelto


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

más de 11 años hace

Problema


Find out Binomial coefficient
Find out Binomial coefficient for <http://en.wikipedia.org/wiki/Binomial_coefficient/ Binomial coefficient>. There is a ...

más de 11 años hace | 1 | 35 solvers

Resuelto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

más de 11 años hace

Resuelto


Add 8
Given an input variable x, output a variable y that is 8 greater than x. Example: Input x = 1 Output y is 9 Input ...

más de 11 años hace

Resuelto


Add 7
Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...

más de 11 años hace

Resuelto


Add 6
Given an input variable x, output a variable y that is 6 greater than x. Example: Input x = 1 Output y is 7 Input ...

más de 11 años hace

Resuelto


Add 5
Given an input variable x, output a variable y that is 5 greater than x. Example: Input x = 1 Output y is 6 Input ...

más de 11 años hace

Resuelto


Add 4
Given an input variable x, output a variable y that is 4 greater than x. Example: Input x = 1 Output y is 5 Input ...

más de 11 años hace

Resuelto


Add 2
Given an input variable x, output a variable y that is 2 greater than x. Example: Input x = 1 Output y is 3 Input ...

más de 11 años hace

Resuelto


Add 1
Given an input variable x, output a variable y that is 1 greater than x. Example: Input x = 1 Output y is 2 Input ...

más de 11 años hace

Resuelto


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

más de 11 años hace

Resuelto


Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

más de 11 años hace

Resuelto


Center of mass
Given a matrix M(m,n), where m is the number of vertices of the geometrical element and n is 2 or 3 (2D-plane figure or 3D-solid...

más de 11 años hace

Resuelto


Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifmq zpv...

más de 11 años hace

Resuelto


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

más de 11 años hace

Resuelto


Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...

más de 11 años hace

Resuelto


Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...

más de 11 años hace

Resuelto


Fizz Buzz
Given an array of positive, non-zero, integers, return a cell array of strings the same size as the input, where each element in...

más de 11 años hace

Resuelto


Rule of mixtures (composites) - lower bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

más de 11 años hace

Resuelto


Rule of mixtures (composites) - upper bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

más de 11 años hace

Cargar más