Gelöst


Area of square
Find the area of a square whose diagonal length is given as x.

mehr als 3 Jahre vor

Gelöst


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

mehr als 3 Jahre vor

Gelöst


square of a number
find square of a given number

mehr als 3 Jahre vor

Gelöst


COUNT VOWEL
Count, how many times vowels occurred. EXAMPLE: x='string the MaTLaBiAn' then the answer will be 6. x='coUnt the vowEl' th...

mehr als 3 Jahre vor

Gelöst


Colon operator of two vectors
You are given two vectors of equal length: VecStart, VecEnd Each vector contain a set of integers, where VecEnd(j)>=VecStar...

mehr als 3 Jahre vor

Gelöst


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

mehr als 3 Jahre vor

Gelöst


Repeat Vector Values an Arbitrary Number of Times
Given two vectors of the same size, repeat the values of the first vector the number of times given in a second vector. For exam...

mehr als 3 Jahre vor

Gelöst


Mirror Image matrix across anti-diagonal
Given an input number x, create a mirror image matrix 'Y' across the anti-diagonal. For example, if x=3, Y = [1 2 3; ...

mehr als 3 Jahre vor

Gelöst


Back to basics - array operations
Without performing actual arithmetic operations on arrays, return feasibility of operation as true or false. True if given opera...

mehr als 3 Jahre vor

Gelöst


Are you in or are you out?
Given vertices specified by the vectors xv and yv, and a single point specified by the numbers X and Y, return "true" if the poi...

mehr als 3 Jahre vor

Gelöst


Just another sum (JAS)
*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

mehr als 3 Jahre vor

Gelöst


Multiply two polynomials p and q given in in vector representation.
Multiply two polynomials p and q given in vector representation. Example p=[-2 0 1 -1 3 2] q=[1 0 -1 2 ...

mehr als 3 Jahre vor

Gelöst


Find the summation, mean, median, mode and standard deviation of a given array.
An array is given. Find out the summation, mean, median, mode and standard deviation of a given array. If x=[1,2,2,3,3,3,4,4,4,...

mehr als 3 Jahre vor

Gelöst


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

mehr als 3 Jahre vor

Gelöst


Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

mehr als 3 Jahre vor

Gelöst


I hope to lose weight healthily...
In order to reduce weight healthily, weight will be reduced by 4% every month. Please calculate how many months it will take...

mehr als 3 Jahre vor

Gelöst


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

mehr als 3 Jahre vor

Gelöst


Given a Vector v1, create v2 which is the sum of each two adjacent elements in v1. {length(v2)=length(v1)-1}
if v1 is [1 2 3 4 5 6 7 8] then v2 should be [3 5 7 9 11 13 15]. if v1 is [1; 3; 5; 7] the...

mehr als 3 Jahre vor

Gelöst


Translate German decimals to English decimals
The string 'x = [2,5; 5,5; 4,3];' should return 'y = [2.5; 5.5; 4.3];'

mehr als 3 Jahre vor

Gelöst


surface areas of a cylinder
There are 3 inputs: option, radius and height. If option= '1', compute the lateral surface area of the cylinder, for option 2 ca...

mehr als 3 Jahre vor

Gelöst


find number of times of occurrence of the most frequent number in a row vector
In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

mehr als 3 Jahre vor

Gelöst


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

mehr als 3 Jahre vor

Gelöst


The proportion of NaN in the data
If NaN occupies less than half of the input data, return 1, otherwise return 0. eg. input x = [1 2 NaN ; 4 NaN 6] >>> out...

mehr als 3 Jahre vor

Gelöst


Negative matrix
Change the sign of all elements in given matrix.

mehr als 3 Jahre vor

Gelöst


The average of the second largest values
Given a matrix, find the average of the second largest values in each row. The same value does not exist on a row. Example: ...

mehr als 3 Jahre vor

Gelöst


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

mehr als 3 Jahre vor

Gelöst


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

mehr als 3 Jahre vor

Gelöst


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

mehr als 3 Jahre vor

Gelöst


convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them. The first input C is ...

mehr als 3 Jahre vor

Gelöst


Let's make puddings !
We will make puddings with eggs, milk and sugar. To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar. Now W...

mehr als 3 Jahre vor

Mehr laden