Risolto


Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

oltre 2 anni fa

Risolto


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

oltre 2 anni fa

Risolto


Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

oltre 2 anni fa

Risolto


Interior angles
Find the sum of interior angles for polygon of x sides.

oltre 2 anni fa

Risolto


prime test 2
enter the only non prime,non composite number

oltre 2 anni fa

Risolto


prime test
find largest 2 digit prime number

oltre 2 anni fa

Risolto


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

oltre 2 anni fa

Risolto


cube of number
find cube of number

oltre 2 anni fa

Risolto


square of a number
find square of a given number

oltre 2 anni fa

Risolto


Square
square root of x

oltre 2 anni fa

Risolto


easy problem
Find the last element of the array

oltre 2 anni fa

Risolto


PIN code III

oltre 2 anni fa

Risolto


PIN code II

oltre 2 anni fa

Risolto


square root
Find square root of given number

oltre 2 anni fa

Risolto


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

oltre 2 anni fa

Risolto


Remove the positive integers.
Given array x (of integers), remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -...

oltre 2 anni fa

Risolto


Sum of integers numbers
Sum of the numbers from 1 to 100

oltre 2 anni fa

Risolto


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

oltre 2 anni fa

Risolto


ascii value
let input='a' output=97

oltre 2 anni fa

Risolto


execute the declaration in strings and return value
execute the commands in strings and return value input='a=23' output=23

oltre 2 anni fa

Risolto


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

oltre 2 anni fa

Risolto


reverse string
input='rama' output='amar'

oltre 2 anni fa

Risolto


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

oltre 2 anni fa

Risolto


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

oltre 2 anni fa

Risolto


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

oltre 2 anni fa

Risolto


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

oltre 2 anni fa

Risolto


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

oltre 2 anni fa

Risolto


Perimeter of a Triangle

oltre 2 anni fa

Risolto


Surface area of a cone

oltre 2 anni fa

Risolto


Surface area of a sphere
Given the radius of a sphere, find it's Surface area

oltre 2 anni fa

Carica altro