Solved

square a number twice with square root of 4/5

square a number twice with square root of 4/5

2 mois ago

Solved

Given a vector x, return vector y with all negative elements from the vector x.

Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

2 mois ago

Solved

Calculate the average value of the elements in the array

Calculate the average value of the elements in the array

2 mois ago

Solved

the average value of the elements

Calculate the average value of the elements in the array

2 mois ago

Solved

Check prime numbers

Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

2 mois ago

Solved

Determine whether a given point is inside or outside a polygon

A closed polygon may be described by an N x 2 array of nodes, where the last node and the first node are the same. Each row of ...

2 mois ago

Solved

Repeat elements of a vector

Repeat each elements of a given vector according to their values. say x=[1,2,1,3] y=[1,2,2,1,3,3,3]

2 mois ago

Solved

remove numbers from a string

check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

2 mois ago

Solved

check whether a number is a pentatope number

https://en.wikipedia.org/wiki/Pentatope_number

2 mois ago

Solved

find subscripts from linear index

a matrix and the linear index of an element is given as input. find the subscripts of that element. if linear index=3 , outp...

2 mois ago

Solved

Sum the Infinite Series

Given that 0 < x and x < 2*pi where x is in radians, write a function [c,s] = infinite_series(x); that returns with the...

2 mois ago

Solved

Solitaire Cipher

Implement the <http://en.wikipedia.org/wiki/Solitaire_(cipher) solitaire cipher>. Since this is from Wikipedia, I am capturin...

2 mois ago

Solved

Find the biggest empty box

You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

2 mois ago

Solved

How many trades represent all the profit?

Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

2 mois ago

Solved

Given a window, how many subsets of a vector sum positive

Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

2 mois ago