Solved


Matrix rotation as per given angle
Given a user defined matrix and angle of rotation, rotate the elements of output matrix as clockwise or anti-clockwise. Angle wi...

3 years ago

Solved


Cumulative difference
Given an array, return the cumulative difference. Example a = [ 1 3 5 7 ] cumdiff = [ 1 2 1 -2 ]

3 years ago

Solved


Create a matrix with difference of each row of input matrix
With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


prime test
find largest 2 digit prime number

3 years ago

Solved


how tall are you?
you can find the length wit this code.

3 years ago

Solved


Draw a triangle of ones
For any given n, return a matrix that includes a triangle of ones of height n: Example n = 3 output = [0,0,1,0,0 ...

3 years ago

Solved


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

3 years ago

Solved


Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order. Efficiency is the key here...

3 years ago

Solved


Easy Sequences 11: Factorial Digits without Trailing Zeros
Here is an easy one... It is not difficult to count the number of digits of the factorial of a given number. For example for 'n...

3 years ago

Solved


Weave two vectors into one
Weave the two given vectors into one as shown below. Example: If a = [1 1 1] b = [0 0 0] then y = [1 0 1 0 ...

3 years ago

Solved


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

3 years ago

Solved


find whether it is prime or not
For a given number find if its prime

3 years ago

Solved


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

3 years ago

Solved


Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

3 years ago

Solved


Transpose of matrix
Transpose of matrix as per test cases

3 years ago

Solved


Calculate Percentage
Given marks obtained and total marks, calculate the percentage.

3 years ago

Solved


RGB to CMYK
Convert an RGB code to the corresponding CMYK code for printing. The RGB input is a [1×3] double array between 0 and 1. ...

3 years ago

Solved


Sequence
Let S be a sequence of numbers Let Find for some , where and .

3 years ago

Solved


Find Logic 24

3 years ago

Solved


Find Logic 8

3 years ago

Solved


Find Sum of array

3 years ago

Solved


Find Logic 29

3 years ago

Solved


Find square of given number
Find Square of any number

3 years ago

Solved


Find Logic 23

3 years ago

Solved


Find Logic 18

3 years ago

Solved


Find Logic 12

3 years ago

Solved


Find Logic 11

3 years ago

Solved


Find Logic 27

3 years ago

Load more