A résolu


How many days?!?
Christmas is coming earlier and earlier each year. Thanks to rampant commercialism and Christmas Creep, "The Twelve Days of Chr...

plus de 3 ans il y a

A résolu


Generate a list of composite numbers

plus de 3 ans il y a

A résolu


Number of o rderd pairs of integers (I,J) that can be formed.
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the condit...

plus de 3 ans il y a

A résolu


Create a v-notch vector without "sort" function
Given a vector vec, create a v-shaped vector as shown below: vec = [ 10 2 3 89 5 7 90 0 12] Output vector = [90 89 12 10 7 5 3 ...

plus de 3 ans il y a

A résolu


Rolling maximums above a threshold
You are given either a vector or a 2-D matrix M and a threshold value of t. Write a script that will calculate how many times t...

plus de 3 ans il y a

A résolu


Which Prime
Given two prime numbers, specify the relation between them i.e. - 'Twin Prime', 'Cousin Prime', 'Sexy Prime' or 'None'

plus de 3 ans il y a

A résolu


Number Puzzle - 035

plus de 3 ans il y a

Problème


Korselt's Criterion
A composite integer n (n>=2) divides b^n-b, i.e. mod(b^n-b,n)==0, for all integers b if and only if n is square-free (doesn't ha...

plus de 3 ans il y a | 1 | 6 solveurs

A résolu


Number Puzzle - 034

plus de 3 ans il y a

A résolu


Number Puzzles - 001

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


Check if a matrix Diagonal is equal to its secondary diagonal
Your function should return True if the secondary diagonal is equal to diagonal, and False otherwise. Eg: M = [1 2 1 ...

plus de 3 ans il y a

A résolu


Add the number of horizontal and vertical movements to each matrix element
Given n, create a square matrix and with element (1,1) = 1, add 1 to each element for each horitizonal and vertical movement. E...

plus de 3 ans il y a

A résolu


Delete the column with all 0 in the TABLE
In the given table (T), delete the column with all 0 data. e.g. input Banana Apple Orange Mellon __...

plus de 3 ans il y a

A résolu


Rule of mixtures (composites) - other bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

plus de 3 ans il y a

A résolu


Rule of mixtures (composites) - weighted bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

plus de 3 ans il y a

A résolu


Cutoff OF Exam

plus de 3 ans il y a

A résolu


Flow rate in a pipe

plus de 3 ans il y a

A résolu


Half the length of the vector

plus de 3 ans il y a

A résolu


Reproduce this plot!
Write a function that will take a dataset (x,y), a best fit model (model), and the upper and lower prediction bounds (lb,ub) for...

plus de 3 ans il y a

A résolu


Orthogonal lines
Check whether two given lines are orthogonal or not. Two lines are orthogonal if they create a right angle at their intersect...

plus de 3 ans il y a

A résolu


Looking for Squares
Need n squares that equal one square all together, none zero, none fractured. For example, calling squares(2) should output [16...

plus de 3 ans il y a

A résolu


Calcular la razón de proporcionalidad
Dadas dos magnitudes (a y b) en forma de vectores, crear una función que permita obtener la razón de proporcionalidad _*m*_ sólo...

plus de 3 ans il y a

A résolu


Bubble sort
Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....

plus de 3 ans il y a

A résolu


Good Morning :)
Just submit your solution between 05:00:00 and 10:00:00 (AM = Ante Meridiem = Before Noon). _Note : Consider Cody Server Time...

plus de 3 ans il y a

A résolu


Taxicab distance

plus de 3 ans il y a

A résolu


Find the slope of a line that passes through two vectors
Given two vectors p1 and p2, return the slope of a line that passes through p1 and p2. Examples: Input [p1,p2] = deal([0,1],[...

plus de 3 ans il y a

A résolu


Number Puzzle - 118

plus de 3 ans il y a

A résolu


Latest Question On Cody
Get the problem number of the latest submitted Problem on Cody. Copying the test suite code might not help.

plus de 3 ans il y a

A résolu


A kind of decryption
Please convert the vector to letters by referring to the examples below. (eg.1) input vec=[34 1 59] >>> output s='A Z' (eg...

plus de 3 ans il y a

Charger plus