A résolu


Number Puzzle - 113
Give an example of a six-digit prime number abcdef for which bcde and cd are also prime numbers.

environ un an il y a

A résolu


Définir une fonction creneau
Definr une fonction "creneau" qui prend en entrée un vecteur et renvoie la valeur 1 pour chaque élément positif du vecteur et...

environ un an il y a

A résolu


Number Puzzles - 009

environ un an il y a

A résolu


Perimeter of a quadrilateral
There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...

environ un an 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. ...

environ un an il y a

A résolu


find the 'M'
for an input x, return 1 at the location of the letter 'M'

environ un an il y a

A résolu


Replace with Lower
Given a list of integers, for each element, replace it with the minimum integer found in the sub-list to its strict right (exclu...

environ un an il y a

A résolu


Number Puzzle - 066

environ un an il y a

A résolu


Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

environ un an il y a

A résolu


Calculate the volume of the football

environ un an il y a

A résolu


Save variables
a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

environ un an il y a

A résolu


Subtraction
Given two numbers a and b subtract them

environ un an il y a

A résolu


Hofstadter Q sequence
The Hofstadter Q sequence is defined as follows: The first elements of the sequence are 1, 1, 2, 3, 3, 4, 5, 5, 6, 6. Write ...

environ un an il y a

A résolu


Neural Net Image Convolution: Return only Valid portion of conv2
This challenge is to return only the Valid portion of a 2-D convolution. Valid is deemed to be where all elements of the kernel ...

environ un an il y a

A résolu


Breaking up a chocolate bar
You've got a chocolate bar of size , and you want to break it up into bite-sized () pieces. How many steps are required to do th...

environ un an il y a

A résolu


Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them. For instance, ...

environ un an il y a

A résolu


Find the summation of factorial series
Factorial numbers are n! = 1*2*3....*n the series is 1!, 2!, 3!,........, n!

environ un an il y a

A résolu


Homemade: Control Charts
This problem is a simple version of control charts in statistics. Intput consists from 30 or more observations. * Upper limi...

environ un an il y a

A résolu


Sort vector by number of prime factors of each element
Sort a given array based on how many prime factors each term has. Sort from least to greatest and output original values. Ex: ...

environ un an il y a

A résolu


Tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

environ un an il y a

A résolu


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

environ un an il y a

A résolu


Find the mean of the magic x
Given a x term, find the magic x, then find the mean/average of any one row or column.

environ un an il y a

A résolu


A little bit of luck needed
This one may require a little bit of guess work, but it is possible. Hints: - The same solution might fail the tests once and ...

environ un an il y a

A résolu


Remove the diagonal of a square matrix
Some Cody problems ask solvers to remove columns (e.g., CP 7), and others ask solvers to remove rows (e.g., CP 44033). Write a...

environ un an il y a

A résolu


Palindrome vector
Check if a given vector is Palindrome. Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]

environ un an il y a

A résolu


Test x = 1
Write a function to make the variable x = 1

environ un an il y a

A résolu


Division
Given two numbers a and b divide them a/b

environ un an il y a

A résolu


Multiplication
Given 2 numbers a and b mulitply them

environ un an il y a

A résolu


Determine when snow started
R.P. Agnew posed the following problem: It starts snowing in the morning and continues steadily throughout the day. A snowplow t...

environ un an il y a

Charger plus