Solved


MinMax
* x=[2 4 3 1 6 4 6] * output , y=[1 6 2 4 3] here,y(1) is the minimum of x, y(2) is the maximum of x, y(3) is the 2nd mini...

6 years ago

Solved


Combinatorics - 01
* Input=[x,n] * where x is an array of numbers(or strings) and n is a +ve number. for example, x=[1,2] and n=6. The out...

6 years ago

Solved


Ugly numbers - 03
For this case, a number is defined ugly if it has prime factors consisting of only elements of x. Find the nth ugly number. ...

6 years ago

Solved


Ugly numbers - 02
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number. n.b. unlike the previous problem,trivi...

6 years ago

Solved


Ugly numbers - 01
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number.

6 years ago

Solved


La derivada numérica
El concepto de pendiente o inclinación de una función recta es muy intuitivo para cualquier persona. Desde el punto de vista mat...

6 years ago

Solved


Cryptography with A Square Matrix : Decoding
Previous Problem: <https://www.mathworks.com/matlabcentral/cody/problems/45279-cryptography-with-a-square-matrix-encoding Crypto...

6 years ago

Solved


Cryptography with A Square Matrix : Encoding
Matrix inverse operation can be used to encode or decode of a message. For example text = 'matlab & cody'. numeric e...

6 years ago

Solved


Orthogonal Circles
Check whether two given circles are orthogonal or not. Two circles are orthogonal if they create a right angle at their inter...

6 years ago

Solved


Orthogonal lines
Check whether two given lines are orthogonal or not. Two lines are orthogonal if they create a right angle at their intersect...

6 years ago

Solved


No of squares in a grid
given a m*n grid calculate the no of possible squares & rectangles on that grid. output: y=[no of rectangles , no of sqa...

6 years ago

Solved


Find the centroid of triangle
Imagine that you want to calculate the *centroid* of some _triangles_ given in matrix form. First the coordinates of the vertice...

6 years ago

Solved


Calculate triangle area
Imagine that you want to calculate the areas of some triangles given in matrix form. First the coordinates of the vertices of th...

6 years ago

Solved


Game of life - 02
refer to <https://en.wikipedia.org/wiki/Conway's_Game_of_Life> refer to <https://www.mathworks.com/matlabcentral/cody/probl...

6 years ago

Solved


Game of life - 01
Refer to <https://en.wikipedia.org/wiki/Conway's_Game_of_Life> given a set of cells (the initial state) represented by 1(l...

6 years ago

Solved


Zero
given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero. * if a=11(1011) t...

6 years ago

Solved


Subdivide the Segment
Two points, P1 and P2, with integer x-y coordinates are given. These uniquely determine a third point, P0, on the extended line...

6 years ago

Solved


Be happy
check whether the given number is happy in b-base. * A happy number can be defined as a number which will yield 1 when it is ...

6 years ago

Solved


Remove duplicated vertices
First input V_in is a vertices list (X Y Z coordinates) which may contain duplicata (identical rows). Second input T_in is th...

6 years ago

Solved


Restricted Addition v4
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45264-restricted-addition-v3 Restricted Addition v3> with...

6 years ago

Solved


Roots of quadratic equation
Given a quadratic equation ax^2 + bx + c = 0, write a function to return its roots.

6 years ago

Solved


Restricted Addition v1
Add two numbers without use of common arithmetic operations. Unfortunately, in order to enforce this restriction, other restrict...

6 years ago

Solved


Restricted Addition v3
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45258-restricted-addition-v2 Restricted Addition v2> with...

6 years ago

Solved


Query every vertices neighbor indices
Input T is a <https://fr.mathworks.com/help/matlab/ref/triangulation.html triangulation>. The purpose of this function is to ...

6 years ago

Solved


Alternate list of elements
Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

6 years ago

Solved


Query edges list
Input T is a triangulation connectivity indices list (triplet list of indices -positive integers-, each index refering to a vert...

6 years ago

Solved


Restricted Addition v2
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45252 Restricted Addition v1> with more restrictions. ...

6 years ago

Solved


Find neighbor triangle indices
First input T is a triangulation (triplet list of indices -positive integers-, each index refering to a vertex number in a corre...

6 years ago

Solved


Query a vertex neighbors
First input T is a triangulation connectivity indices list (triplet list of indices -positive integers-, each index refering to ...

6 years ago

Solved


Unique: Speed Enhancement for uint(8,16,32)
This Speed Performance Challenge is to optimize Unique for processing uint8/uint16/uint32 variables. *Input:* A (column vecto...

6 years ago

Load more