A résolu


find the logic,easy one
find the logic behind, example x=18 y=306 x=53 y=2756

plus d'un an il y a

A résolu


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

plus d'un an il y a

A résolu


String Logic 1
Examples: 'CAT' --> 'IGZ' 'DOG' --> 'JUM'

plus d'un an il y a

A résolu


Cody problems in French : Trouvez la logique Pt.2
Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'utilisation de "^" est de nouveau fortement...

plus d'un an il y a

A résolu


String Logic 13
Examples: 'CAT' --> 'TCA' 'DOG' --> 'OGD' 'ROSY' --> 'YSRO' 'MOSTLY' --> 'YTSOML'

plus d'un an il y a

A résolu


String Logic 18
Examples: 'DIG' --> 'DG' 'IMPORTANT' --> 'IPRAT' 'DEAL' --> 'DA' 'LIMB' --> 'LM' 'MOSTLY' --> 'MSL'

plus d'un an il y a

A résolu


Numbers spiral diagonals (Part 2)
Inspired by Project Euler n°28 and 58. A n x n spiral matrix is obtained by starting with the number 1 and moving to the right ...

plus d'un an il y a

A résolu


Pascal's pyramid
In Pascal's triangle each number is the sum of the two nearest numbers in the line above: 1 1 1 ...

plus d'un an il y a

A résolu


Numbers spiral diagonals (Part 1)
Inspired by Project Euler n°28 et 58. A n x n spiral matrix is obtained by starting with the number 1 and moving to the right...

plus d'un an il y a

A résolu


Rainbow matrix
Create a "rainbow matrix" as described in the following examples Input = 3 Output = [ 1 2 3 2 3 2 ...

plus d'un an il y a

A résolu


Generate this matrix
For a given odd integer n, generate a matrix as follows: Input: n = 5; Output: [ 2 1 0 0 0 1 ...

plus d'un an il y a

A résolu


Diagonal of a Spiral Matrix
Write a function that will return same output as diag(spiral(n)). The only exception is that spiral and diag functions are not a...

plus d'un an il y a

A résolu


Coefficient of Static friction
The coefficient of static friction between two surfaces is u. What force must be used to move a W lb. crate on a horizontal sur...

plus d'un an il y a

A résolu


Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

plus d'un an il y a

A résolu


Find the Pattern 3

plus d'un an il y a

A résolu


Find the Pattern 1

plus d'un an il y a

A résolu


Find the Pattern 9

plus d'un an il y a

A résolu


Find the Pattern 10

plus d'un an il y a

A résolu


Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

plus d'un an il y a

A résolu


Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

plus d'un an il y a

A résolu


Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...

plus d'un an il y a

A résolu


Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

plus d'un an il y a

A résolu


Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

plus d'un an il y a

A résolu


Matrix Pattern 4

plus d'un an il y a

A résolu


Matrix Pattern 3

plus d'un an il y a

A résolu


Matrix Pattern 1

plus d'un an il y a

A résolu


The Matrix Construction
Given two input ,first one is CN (Column Number), Second one is Dim Can you produce such a matrix for example CN=6; Dim=2 ...

plus d'un an il y a

A résolu


Create a block diagonal matrix
A block diagonal matrix is a square matrix that can be written as A = [a 0 0 0 0 b 0 0 0 0 c 0 ...

plus d'un an il y a

A résolu


Generate this matrix
Generate the following matrix. n = 2; out = [-4 -3 -2 -1 0 -3 -2 -1 0 1 -...

plus d'un an il y a

A résolu


Nilpotent matrix
Check if matrix A is <http://mathworks.com/ nilpotent>.

plus d'un an il y a

Charger plus