Gelöst


Find the gcm of n given values
Create a function that given n integer values greater than zero, finds the two numbers with the greatest common divisor and retu...

mehr als 10 Jahre vor

Gelöst


Spherical Volume
Calculate the volume of a sphere.

mehr als 10 Jahre vor

Gelöst


Is 3D point set Co-Planar?
This Challenge is to determine if four 3D integer points are co-planar. Given a 4x3 matrix representing four x,y,z integer poin...

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


Fill the matrix - 1
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the s...

mehr als 10 Jahre vor

Gelöst


Convert float to base N
The matlab function dec2base converts a positive integer number to a specified base. Extend it so that it works with non intege...

mehr als 10 Jahre vor

Gelöst


Angle bisectors
Given 2 direction vectors, calculate the *_two_ (2) normalized angle bisectors* (which are perpendicular between them). Input...

mehr als 10 Jahre vor

Gelöst


Convert integer to base26 using letters
Write a function that converts a decimal integer to base26 using the letters of the english alphabet, i.e. 0->'a', 1->'b', 2->'c...

mehr als 10 Jahre vor

Gelöst


While loop with branching
Write a while loop that adjusts userValue while userValue is less than 0 or greater than 80. If userValue is greater than 80, th...

mehr als 10 Jahre vor

Gelöst


Find the nearest prime
Given a positive integer 'n', the task is to find a prime number greater than or equal to 'n'. Example 1 If given 'n' is ...

mehr als 10 Jahre vor

Gelöst


Odd elimination
Inspired by Project Euler problem #539 You'll be given a vector from 1 to n; Going from left to right, remove the first n...

mehr als 10 Jahre vor

Gelöst


Why?
Why has been a major question throughout history; why did Napoleon fail, why do we exist, why must I work a pageant, to name a f...

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

mehr als 10 Jahre vor

Gelöst


Multiplying Vectors
Find a way to multiply two vectors.

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


Fun with a compass
Each night for the past week, you have been having the same nightmare: You find yourself back in your junior high school geometr...

mehr als 10 Jahre vor

Problem


Fun with a compass
Each night for the past week, you have been having the same nightmare: You find yourself back in your junior high school geometr...

mehr als 10 Jahre vor | 2 | 44 Lösungsvorschläge

Gelöst


Breaking Bad Tiles (Spelling with Element Symbols)
Given a word, how you would spell it with element symbols from the periodic table? For instance, if given the string "Paper", yo...

mehr als 10 Jahre vor

Gelöst


Combine Cards to make 21
Given between two and six cards, e.g. A _ 3 _ 7 _ 6 _ 2 place one of the mathematical symbols (+,-,*,/) in the space betw...

mehr als 10 Jahre vor

Gelöst


Number of occurrences of letter in a text
Given an input text either as a string or as a cell array of strings, return a (1 x 26) matrix containing the number of occurren...

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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)

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


Is It a Snake?
Given an m-by-n matrix, return true if the elements of the matrix are a connected "snake" shape from 1 to m*n. Otherwise return ...

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


Bulls Eye Matrix
Bulls Eye Matrix

mehr als 10 Jahre vor

Gelöst


Sum of elements of array
Sum of elements of array

mehr als 10 Jahre vor

Mehr laden