A résolu


Soccer - TOTO
How many different outcomes are there in a soccer-TOTO with n games? For each game there are three results: win - loss - equa...

plus d'un an il y a

A résolu


Simple Circuit of Resistors

plus d'un an il y a

A résolu


Uniform binary crossover
Given two binary vectors, return the two children by combining the genes of them using a binary crossover mask. More informat...

plus d'un an il y a

A résolu


Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

plus d'un an il y a

A résolu


Accessing values in a cell
You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in t...

plus d'un an il y a

A résolu


Create a column vector of n elements between a and b (both included)
Given lower limit a and an upper limit b, create a column vector of n elements inclusive of a and b. For example: a = 1, b = 4,...

plus d'un an il y a

A résolu


Análisis código QR

plus d'un an il y a

A résolu


Previous Palindrome

plus d'un an il y a

A résolu


Draw a triangle of ones
For any given n, return a matrix that includes a triangle of ones of height n: Example n = 3 output = [0,0,1,0,0 ...

plus d'un an il y a

A résolu


Remove Duplicates
Remove duplicates from the vector of integers and display in sorted order

plus d'un an il y a

A résolu


Combination of Vectors
Return a combination of vectors x1, x2 based on y1, y2 per: x(j) = 0 if y1(j) < y2(j) x(j) = x1(j) if y1(j)...

plus d'un an il y a

A résolu


Palindrome Checker
Check to see if a given string is a palindrome (a word, phrase, or sequence that reads the same backward as forward). Output sh...

plus d'un an il y a

A résolu


Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...

plus d'un an il y a

A résolu


Factorions: Numbers that equal the sum of the factorials of their digits
From Wikipedia: _A factorion is a natural number that equals the sum of the factorials of its decimal digits_ For example: ...

plus d'un an il y a

A résolu


Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo? Un número primo es cualquier número que solamente se puede dividir por 1 y ...

plus d'un an il y a

A résolu


Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...

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


Distance Travelled by Vehicle

plus d'un an il y a

A résolu


num10
123456

plus d'un an il y a

A résolu


Equal temperament - musical notes and frequency
Starting from 440Hz note (musical note A above middle C), create 13 notes, using twelve-tone equal temperament, in Herz units. ...

plus d'un an il y a

A résolu


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

plus d'un an il y a

A résolu


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

plus d'un an il y a

A résolu


Zero or hero
A number will be given as an input. You can be hero if it's not zero. (Just for fun)

plus d'un an il y a

A résolu


Number Puzzle - 076

plus d'un an il y a

A résolu


Number Puzzle - 068

plus d'un an il y a

A résolu


Number Puzzle - 046

plus d'un an il y a

A résolu


Absolute Value of the Product of Complex Numbers
Find the absolute value (modulus) of the product of two complex numbers given by a + bi and c + di.

plus d'un an il y a

A résolu


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

plus d'un an il y a

A résolu


Squares of odd numbers upto a given range
Find the squares of odd numbers upto a given range. If Given x=6 return y=(1^2,3^2,5^2) y=1,9,25 If Given x=5 retu...

plus d'un an il y a

A résolu


JannaT is Loved By Me
JannaT was sTarTed loved by me and that time was in 2020. A year when JannaT will starT loving me when the year divided from th...

plus d'un an il y a

Charger plus