문제를 풀었습니다


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

11년 초과 전

문제


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

11년 초과 전 | 2 | 솔버 수: 188

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


"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) ...]...

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제


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

11년 초과 전 | 1 | 솔버 수: 33

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

문제를 풀었습니다


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

11년 초과 전

더 보기