A résolu


Weighted average
Given two lists of numbers, determine the weighted average as follows Example [1 2 3] and [10 15 20] should result in 33.3...

2 mois il y a

A résolu


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

2 mois il y a

A résolu


Multiply the Diagonals of Two Vectors
Find the diagonals of vectors a and b and multiply them.

2 mois il y a

Problème


Multiply the Diagonals of Two Vectors
Find the diagonals of vectors a and b and multiply them.

2 mois il y a | 0 | 32 solveurs

A résolu


Sum the main diagonal of a matrix
Given a square matrix, return the sum of its main diagonal elements. Example: diag_sum([1 2 3; 4 5 6; 7 8 9]) returns 15

2 mois il y a

A résolu


Prime or No
If the number is prime, make theCase = "YES", else, make it "NO".

2 mois il y a

Problème


Prime or No
If the number is prime, make theCase = "YES", else, make it "NO".

2 mois il y a | 0 | 20 solveurs

A résolu


Convert Celsius temperature to Fahrenheit
Given a temperature in Celsius, return the equivalent in Fahrenheit. Formula: F = C * 9/5 + 32Example: cel2fahr(100) returns 212...

2 mois il y a

A résolu


Watermelon [MATLAB Cody Edition]
YOU CAN READ THE REAL CHALLENGE FROM THIS URL AND APPLY IT https://codeforces.com/problemset/problem/4/A NOW INSTEAD OF DISP...

2 mois il y a

Problème


Watermelon [MATLAB Cody Edition]
YOU CAN READ THE REAL CHALLENGE FROM THIS URL AND APPLY IT https://codeforces.com/problemset/problem/4/A NOW INSTEAD OF DISP...

2 mois il y a | 0 | 13 solveurs

A résolu


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

2 mois il y a

A résolu


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

2 mois il y a

A résolu


Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...

2 mois il y a

Problème


Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...

2 mois il y a | 2 | 107 solveurs

A résolu


Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then... If it's length from 1 to 5, sz = ...

2 mois il y a

Problème


Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then... If it's length from 1 to 5, sz = ...

2 mois il y a | 0 | 104 solveurs

A résolu


Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns. Cases from 1 to 3, b = true. Otherwise, b = false.

2 mois il y a

Problème


Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns. Cases from 1 to 3, b = true. Otherwise, b = false.

2 mois il y a | 0 | 103 solveurs

Problème


NOT
If a not equal to zero, b = true, else, b = false.

2 mois il y a | 0 | 119 solveurs

A résolu


OR
If a greater than zero or c less than 10, b = true, else, b = false.

2 mois il y a

Problème


OR
If a greater than zero or c less than 10, b = true, else, b = false.

2 mois il y a | 0 | 120 solveurs

A résolu


AND
If a greater than 0 and n less than 10, b = true, else, b = false. (Checking a should be in one line by AND special sign in MAT...

2 mois il y a

Problème


AND
If a greater than 0 and n less than 10, b = true, else, b = false. (Checking a should be in one line by AND special sign in MAT...

2 mois il y a | 0 | 122 solveurs

A résolu


Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.

2 mois il y a

Problème


Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.

2 mois il y a | 0 | 122 solveurs

A résolu


If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.

2 mois il y a

Problème


If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.

2 mois il y a | 0 | 126 solveurs

A résolu


If-Else
If a more than zero, b = true, else, b = false.

2 mois il y a

Problème


If-Else
If a more than zero, b = true, else, b = false.

2 mois il y a | 0 | 133 solveurs

A résolu


If
If a more than zero, then b = true.

2 mois il y a

Charger plus