Gelöst


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...

4 Monate vor

Gelöst


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

4 Monate vor

Gelöst


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

4 Monate vor

Problem


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

4 Monate vor | 0 | 48 Lösungsvorschläge

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Problem


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

5 Monate vor | 0 | 24 Lösungsvorschläge

Gelöst


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...

5 Monate vor

Gelöst


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...

5 Monate vor

Problem


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...

5 Monate vor | 0 | 17 Lösungsvorschläge

Gelöst


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...

5 Monate vor

Gelöst


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 ] ...

5 Monate vor

Gelöst


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...

5 Monate vor

Problem


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...

5 Monate vor | 2 | 140 Lösungsvorschläge

Gelöst


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 = ...

5 Monate vor

Problem


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 = ...

5 Monate vor | 0 | 142 Lösungsvorschläge

Gelöst


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.

5 Monate vor

Problem


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.

5 Monate vor | 0 | 140 Lösungsvorschläge

Problem


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

5 Monate vor | 0 | 165 Lösungsvorschläge

Gelöst


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

5 Monate vor

Problem


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

5 Monate vor | 0 | 170 Lösungsvorschläge

Gelöst


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...

5 Monate vor

Problem


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...

5 Monate vor | 0 | 166 Lösungsvorschläge

Gelöst


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.

5 Monate vor

Problem


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.

5 Monate vor | 0 | 171 Lösungsvorschläge

Gelöst


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

5 Monate vor

Problem


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

5 Monate vor | 0 | 181 Lösungsvorschläge

Gelöst


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

5 Monate vor

Problem


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

5 Monate vor | 0 | 190 Lösungsvorschläge

Gelöst


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

5 Monate vor

Mehr laden