Solved


Create a column vector of n elements between a and b (both included)
Given lower limit a and an upper limit b, create a column vector of n elements inclusive of a and b. For example: a = 1, b = 4,...

3 years ago

Solved


Determine if the inputs are divisible by both 3 and 5.
Given a integer x: return true if it is divisible by both 3 and 5, return false if it is not divisible by either 3 or 5.

3 years ago

Solved


Draw a X
Given an input , create a square matrix of zeros with an X of ones. Ex. n = 3 drawX(3) [ 1 0 1 0 1 0 1 0 1 ] ...

3 years ago

Solved


Caesar Cipher
Given a input word x and a shift n, encrypt the word with caesar cipher of shift n.

3 years ago

Solved


Extract the main diagonal of a matrix
Extract the main diagonal of a matrix and return as an array. For example, the main diagonal of the following matrix would be: ...

3 years ago

Solved


Monty Python and the Holy Grail: Crossing the Bridge of Death
To cross the Bridge of Death, your function must return the numerical value for the airspeed velocity of an unladen swallow

3 years ago

Solved


Return the Fun Numbers
Return the Fun Numbers, just the 3s and 7s

3 years ago

Solved


Nth term of AP
Given the first term 'a' and the common difference 'd' of an AP series, calculate the nth term of the series.

3 years ago

Solved


Determine if input is prime
Output if prime

3 years ago

Solved


determine if input is Odd
Find whether the input is odd. return 1 if true or else 0

3 years ago

Solved


determine if input is even
find the number is even or not

3 years ago

Solved


return odd numbers
Return odd numbers in an vector

3 years ago

Solved


find the position of the given number in vector
return the position of the number in vector

3 years ago

Solved


Determine if a number is prime
A prime number is a whole number greater than 1 whose only factors are 1 and itself.

3 years ago

Solved


Find the nth term in an Arithmetic Progression
Given the starting number, difference and number of elements - find the nth term in the AP

3 years ago

Solved


Sum of Arithmetic Progression
Given the starting number, difference and the number of terms - find the sum of the arithmetic progression.

3 years ago

Solved


Find two numbers that add up to the target value
Given a vector A and target n, return the indices of two numbers that add up to n. If there are multiple solutions, return the f...

3 years ago

Solved


True engineer
Prove that pi is indeed equal to e. Return 1 by rounding pi and e to the nearest integer then asserting rounded pi and e are eq...

3 years ago

Solved


Absolute Value of the Product of Complex Numbers
Find the absolute value (modulus) of the product of two complex numbers given by a + bi and c + di.

3 years ago

Solved


Length of shortest path in a directed graph.
Given a directed graph and a start and end node in the graph, return the minimum number of hops required to reach the end node f...

3 years ago

Solved


Time and Variable mapping and matching
There is a 6X5 cell array where * 1st column represents time values * 2nd and 3rd column represent variables and their value...

3 years ago

Solved


Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

3 years ago

Solved


Trap a knight
Consider a knight on an infinite chessboard labeled with numbers spiraling outward. A knight starting on the square labeled 1 ca...

3 years ago

Solved


Flip the parity of digits in a decimal expansion
The number 349 has the decimal expansion . If we change the even digits from positive to negative, then the number becomes 269 (...

3 years ago

Solved


Count the peaceful queens
In a 5x5 chessboard with a queen of one color (white, say) on the perimeter, one can place 12 black queens on the board such tha...

3 years ago

Solved


test
test

3 years ago

Solved


Find the length of stream affected by a spill
When a contaminant is spilled into a stream, one might want to know how much of the stream is affected—e.g., the length over whi...

4 years ago

Solved


Evaluate the generalized hypergeometric function
The <https://en.wikipedia.org/wiki/Generalized_hypergeometric_function generalized hypergeometric function> is defined as <<...

4 years ago

Solved


List odd twin composites
Twin primes, or prime numbers that differ by 2 (e.g., 17 and 19, 59 and 61, or 191 and 193), are the subject of several Cody pro...

4 years ago

Solved


Hyperperfect Numbers
A k-hyperperfect number is a natural number n for which the equality n = 1 + k(σ(n) − n − 1) holds, where σ(n) is the divisor ...

4 years ago

Load more