Problem


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

fast 4 Jahre vor | 2 | 15 Lösungsvorschläge

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Problem


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

fast 4 Jahre vor | 2 | 29 Lösungsvorschläge

Gelöst


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

fast 4 Jahre vor

Problem


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

fast 4 Jahre vor | 3 | 12 Lösungsvorschläge

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Problem


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

fast 4 Jahre vor | 0 | 10 Lösungsvorschläge

Gelöst


Sum of series IX

fast 4 Jahre vor

Gelöst


Sum of series VIII

fast 4 Jahre vor

Gelöst


Remnant

mehr als 4 Jahre vor

Gelöst


Return multiples of 3

mehr als 4 Jahre vor

Gelöst


print

mehr als 4 Jahre vor

Gelöst


step function

mehr als 4 Jahre vor

Gelöst


Test

mehr als 4 Jahre vor

Gelöst


Swap

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


Digits Multiplication

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


Normalizing a vector

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


Min-Max digit

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


imaginary

mehr als 4 Jahre vor

Gelöst


Factorial

mehr als 4 Jahre vor

Gelöst


Size

mehr als 4 Jahre vor

Mehr laden