A résolu


Power Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that represent powers. Fo...

plus de 10 ans il y a

A résolu


unique with nan
input x = [2 NaN 3 5 NaN; 1 NaN 4 9 NaN; 8 -2 7 6 -2; 7 4 8 5 4]; output y_correct = [2 ...

plus de 10 ans il y a

A résolu


longest sequence of nans
In an array return the length of longest sequence of nans for each column. x = [ 2 3 1 2 5 6; nan nan 5 n...

plus de 10 ans il y a

A résolu


Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...

plus de 10 ans il y a

A résolu


Perimeter
Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...

plus de 10 ans il y a

A résolu


UICBioE240 2.6
Given a row vector containing all x1, and a column vector containing all x2, and their lengths are equal, create a column vector...

plus de 10 ans il y a

A résolu


UICBioE240 2.5
Given a row vector containing all x1, and a column vector containing all x2, and their lengths are equal, create a row vector co...

plus de 10 ans il y a

A résolu


the proud tradition of zero scores in Cody
The short version is: *_your function should return a zero and also have a zero score/size_* The long version comes with a li...

plus de 10 ans il y a

A résolu


Find the Final State of an Abelian Sandpile
Let us define an <http://nautil.us/issue/23/dominoes/the-amazing-autotuning-sandpile Abelian sand pile> as a matrix that is only...

plus de 10 ans il y a

A résolu


Ring Matrix
Given n (only odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. ...

plus de 10 ans il y a

A résolu


Roots of quadratic equation
Given equation is ax^2 + bx + c

plus de 10 ans il y a

A résolu


UICBioE240 problem 1.12
The mathematical quantities e^x, ln x and log x are calculated using the expression exp(x), log(x) and log10(x) respectively. ...

plus de 10 ans il y a

A résolu


UICBioE240 2.4
Given equation for half-life of a drug

plus de 10 ans il y a

A résolu


Longest Collatz Sequence
Inspired by Projet Euler n°14. The Collatz iterative sequence (See Cody problem n° 2103 and 211) is defined for the set of po...

plus de 10 ans il y a

A résolu


Distance a ball travels after throwing vertically
Calculate the total distance *'d'* (in meters) a ball would travel after *'s'* seconds and starting velocity of *'v'* (in m/s). ...

plus de 10 ans il y a

A résolu


Polynomial Evaluation
Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...

plus de 10 ans il y a

A résolu


Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

plus de 10 ans il y a

A résolu


What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...

plus de 10 ans il y a

A résolu


For a given linear index as input for n sized square matrix, find corresponding row and column.
If input is 1, the row and column will be 1 and 1 respectively.

plus de 10 ans il y a

A résolu


Multiple if statements
Write an if-statement that subtracts 5 from outputValue if amplitudeResponse is greater than 10. Write a second if-statement tha...

plus de 10 ans il y a

A résolu


Print the date for a given number using Indian calendar reference
Print date for a given number in date reference is INDIAN calendar, not Christ's Birth The Vikram Samvat is said to have been...

plus de 10 ans il y a

A résolu


Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?

plus de 10 ans il y a

A résolu


Get all corner elements from a matrix where dimension of matrix is always equal to or greater than 2.
if a given matrix a = [1 2 3;4 5 6]; so answer is going to be [1 3;4 6]

plus de 10 ans il y a

A résolu


replace nan values iteratively.
replace nan values with the average of two neighbour non-nan value iteratively as follow; x = [2; 4; 6; nan; nan; nan; 10]; ...

plus de 10 ans il y a

Problème


Longest Collatz Sequence
Inspired by Projet Euler n°14. The Collatz iterative sequence (See Cody problem n° 2103 and 211) is defined for the set of po...

plus de 10 ans il y a | 8 | 141 solveurs

A résolu


Text processing - Help Johnny write a letter home from camp
Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more ...

plus de 10 ans il y a

A résolu


Stress-Strain Properties - 8
Up to this point, you've calculated some material properties based on tensile stress-strain data. For this problem, you are task...

plus de 10 ans il y a

A résolu


UICBioE240 2.9
Find the number of minutes between September X1th 9:15AM to September X2th 2:44PM.

plus de 10 ans il y a

A résolu


While loop with multiple conditions
Write a while loop that multiplies userValue by 2 while userValue is not 10 and while userValue is less than 25.

plus de 10 ans il y a

A résolu


UICBioE240 2.7
Given x1 and x2, create a 3x3x3 matrix Y where (:,:,1) has all values of x1*x2, (:,:,2) has all values of x1-x2, and (:,:,3) has...

plus de 10 ans il y a

Charger plus