Problema


Sort Non-zeros
Consider 0s in a vector creates a break-point. sort all the sub-arrays created by those break points. For example, a = [3, 4, 1...

más de 3 años hace | 2 | 15 solvers

Resuelto


Draw a Diamond shape in ones Matrix with '0' s
Input will be odd numbers.The task is to make a Diamond shape in a ones matrix with '0's where the matrix will be a square matri...

más de 3 años hace

Resuelto


Weird Diagonal Matrix!!
**If you have loved the problem, please like it below(Request)** Given an integer n, create a matrix whose diagonal elements wi...

más de 3 años hace

Resuelto


Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

más de 3 años hace

Problema


Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

más de 3 años hace | 2 | 29 solvers

Resuelto


Cut the rod
A rod of length n can be cut in different sizes. Different price is associated with different length of cuts. length, len= [1,...

más de 3 años hace

Problema


Cut the rod
A rod of length n can be cut in different sizes. Different price is associated with different length of cuts. length, len= [1,...

más de 3 años hace | 3 | 12 solvers

Resuelto


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...

más de 3 años hace

Resuelto


Number of leaps in binary search
Binary search is one of the most popular searching algorithms (Binary Search Algorithm). It works only in a sorted array. It uti...

más de 3 años hace

Problema


Number of leaps in binary search
Binary search is one of the most popular searching algorithms (Binary Search Algorithm). It works only in a sorted array. It uti...

más de 3 años hace | 0 | 10 solvers

Resuelto


Sum of series IX

más de 3 años hace

Resuelto


Sum of series VIII

más de 3 años hace

Resuelto


Remnant

más de 4 años hace

Resuelto


Return multiples of 3

más de 4 años hace

Resuelto


print

más de 4 años hace

Resuelto


step function

más de 4 años hace

Resuelto


Test

más de 4 años hace

Resuelto


Swap

más de 4 años hace

Resuelto


Stacking vectors into a matrix
Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two r...

más de 4 años hace

Resuelto


Digits Multiplication

más de 4 años hace

Resuelto


Matrix Indexing
Given a matrix A and scalars r,c,i, find the product of two elements, with the first element located at row r and column c (doub...

más de 4 años hace

Resuelto


Normalizing a vector

más de 4 años hace

Resuelto


MATLAB Basics: Complex Argument
For a given complex number, x, return the argument, y, in degrees.

más de 4 años hace

Resuelto


MATLAB Basics: Complex Numbers
For a given complex number, x, return the real and imaginary parts as a vector, y = [Real Imaginary].

más de 4 años hace

Resuelto


MATLAB Basics: Complex Conjugates
For a given complex number, x, return the complex conjugate, y.

más de 4 años hace

Resuelto


Min-Max digit

más de 4 años hace

Resuelto


Draw a x-by-x matrix British flag (Euro 2020)
Draw a x-by-x matrix 'British flag' using '0' and '1'.(x is odd and bigger than 4) x = 5 answer = [0 0 1 0 0 ...

más de 4 años hace

Resuelto


imaginary

más de 4 años hace

Resuelto


Factorial

más de 4 años hace

Resuelto


Size

más de 4 años hace

Cargar más