解決済み


Spherical Volume
Calculate the volume of a sphere.

10年以上 前

解決済み


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

10年以上 前

解決済み


Adding numbers
Add two numbers together

10年以上 前

解決済み


Multiply by 3 and subtract 1
As a class assignment, I'm making a Cody problem. It shouldn't be terribly difficult. Given the variable x as your input, mu...

10年以上 前

解決済み


Multiplying Vectors
Find a way to multiply two vectors.

10年以上 前

解決済み


Volume of a cylinder
Find Volume of cylinder with the given radius and height.

10年以上 前

解決済み


Throw common elements of two vector arrays
Throw common elements as output of two given input vector arrays

10年以上 前

解決済み


Find Month & day for given day number of a year
Find Month & day for given day number of a year (day number is any number ranging from 1 to 366)

10年以上 前

解決済み


Throw common elements of two vector arrays in sorted manner
Throw common elements as output in sorted manner (acending order) of two given input vector arrays

10年以上 前

解決済み


Find 1's Complement
Find 1's complement of a binary number For Example: x = 10011010 1's complement of x = 01100101

10年以上 前

解決済み


Step up
For given input array, output a array with all elements step up by two

10年以上 前

解決済み


Sum of Matrix
Sum of Matrix

10年以上 前

解決済み


Sum of elements of array
Sum of elements of array

10年以上 前

解決済み


prime to each other
Given two integers n1, n2 greater than 1, find out if they are prime to each other.

10年以上 前

解決済み


Bulls Eye Matrix
Bulls Eye Matrix

10年以上 前

解決済み


Find elements of set A those are not in set B
Given two sets of data A and B. Find elements of A those are not in set B. ...

10年以上 前

解決済み


FInd an Area of a Polygon
Consider 2-D geometry and assume that the points are given in form of rows of a matrix. Find an area of polygon enclosed by the ...

10年以上 前

解決済み


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

10年以上 前

解決済み


Replace secondary diagonal elements of a square array
Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

10年以上 前

解決済み


Factorions: Numbers that equal the sum of the factorials of their digits
From Wikipedia: _A factorion is a natural number that equals the sum of the factorials of its decimal digits_ For example: ...

10年以上 前

解決済み


Whole Number Un-Concatenator
Write a function that accepts an integer and an index digit and returns a vector containing two integers which are the leading a...

10年以上 前

解決済み


Find vampire numbers
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such th...

10年以上 前

解決済み


Fangs of a vampire number
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such tha...

10年以上 前

解決済み


Determine value using Look-up table method
Given a set of 2 vectors x and y related in a certain way, you are supposed to find value of y (ydash) given a particular value ...

10年以上 前

解決済み


Get ranks of values in a vector
For a given vector, say [6 3 8 2], return the ranks (ascending) of observations, i.e. [3 2 4 1]. Do not worry about tied ranks. ...

10年以上 前

解決済み


Make blocks of color
Given a (Nx3) sequence of RGB colors, I want to create a (numRowBlocks x numColBlocks x 3) image comprising (blockSize x blockSi...

10年以上 前

解決済み


Is this number Munchhausen Narcissistic?
In this problem, simply return 1 if a supplied number is Munchhausen narcissistic or 0 if not. Example 153 is narcissistic...

10年以上 前

解決済み


N-th Odious
Given index n return n-th <https://oeis.org/A000069 odious number>.

10年以上 前

解決済み


Bell Number calculator
Calculate a vector of Bell numbers for sets up to length n. Bell numbers are the maximum number of partitions of a set. See the ...

10年以上 前

解決済み


Polite numbers. Politeness.
A polite number is an integer that sums of two or more consecutive positive integers. Politeness of a positive integer is a num...

10年以上 前

さらに読み込む