解決済み


Test if a Number is a Palindrome without using any String Operations
*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

3年弱 前

解決済み


Find the next square number
Given one or more integers n, find the next integer that is a square, for each of them. Example 1: n = 1; out = 4; ...

3年弱 前

解決済み


Array of Ones
Create a 100 X 100 array of ones.

3年弱 前

解決済み


The sum of individual numbers...
Well this one is taking a number and then summing the individual parts till you reach a value of 1, 2, 3, 4, 5, 6, 7, 8, 9, or 0...

3年弱 前

解決済み


Sum My Indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

3年弱 前

解決済み


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

3年弱 前

解決済み


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

3年弱 前

解決済み


Find all repeated numbers
For a given vector, find all numbers that repeated 2 times or more than 2 times. Example: A=[1 2 3 3 4 5 6 6 7] y=[3 ...

3年弱 前

解決済み


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

3年弱 前

解決済み


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

3年弱 前

解決済み


Generate Tribonacci Sequence
The "Tribonacci" sequence is an extension of the idea of the Fibonacci sequence: That is, each new term is the sum of the thr...

3年弱 前

解決済み


Are all the three given point in the same line?
In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...

3年弱 前

解決済み


Find the sines of an isosceles triangle when given its area and height
Find the sines of an isosceles triangle when given its area and height. For example, when A=12 and h=4, the result is [0.8 0.8 ...

3年弱 前

解決済み


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

3年弱 前

問題


The rabbit problem
Suppose a newly-born pair of rabbits, one male, one female, are put in a field. Rabbits are able to mate at the age of one month...

3年弱 前 | 1 | 14 個のソルバー

解決済み


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

3年弱 前

解決済み


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

3年弱 前

解決済み


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

3年弱 前

解決済み


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

3年弱 前

解決済み


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

3年弱 前

解決済み


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

3年弱 前

解決済み


Will there be a new leader?
Simply answer the title.

3年弱 前

解決済み


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

3年弱 前

解決済み


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

3年弱 前

解決済み


Equal to their cube
Tell me three real numbers that are equal to their cubes?

3年弱 前

解決済み


Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

3年弱 前

解決済み


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

3年弱 前

解決済み


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

3年弱 前

解決済み


surface of a spherical planet
you just discovered its circumference, that is the input.

3年弱 前

解決済み


Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

3年弱 前

さらに読み込む