Problème


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

presque 4 ans il y a | 2 | 18 solveurs

A résolu


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

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

Problème


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

presque 4 ans il y a | 2 | 30 solveurs

A résolu


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

presque 4 ans il y a

Problème


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

presque 4 ans il y a | 3 | 14 solveurs

A résolu


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

presque 4 ans il y a

A résolu


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

presque 4 ans il y a

Problème


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

presque 4 ans il y a | 0 | 11 solveurs

A résolu


Sum of series IX

presque 4 ans il y a

A résolu


Sum of series VIII

presque 4 ans il y a

A résolu


Remnant

plus de 4 ans il y a

A résolu


Return multiples of 3

plus de 4 ans il y a

A résolu


print

plus de 4 ans il y a

A résolu


step function

plus de 4 ans il y a

A résolu


Test

plus de 4 ans il y a

A résolu


Swap

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


Digits Multiplication

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


Normalizing a vector

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


Min-Max digit

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


imaginary

plus de 4 ans il y a

A résolu


Factorial

plus de 4 ans il y a

A résolu


Size

plus de 4 ans il y a

Charger plus