A résolu


Spherical Volume
Calculate the volume of a sphere.

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


Adding numbers
Add two numbers together

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


Multiplying Vectors
Find a way to multiply two vectors.

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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)

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


Sum of Matrix
Sum of Matrix

plus de 10 ans il y a

A résolu


Sum of elements of array
Sum of elements of array

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


Bulls Eye Matrix
Bulls Eye Matrix

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

A résolu


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

plus de 10 ans il y a

Charger plus