Resuelto


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

casi 9 años hace

Resuelto


Mastermind II: Solve in 8 or less
<https://en.wikipedia.org/wiki/Mastermind_(board_game) Mastermind> is a code breaking logic puzzle. A pattern of 6 colors(values...

alrededor de 9 años hace

Resuelto


Mastermind I: Solve all 1296 cases
<https://en.wikipedia.org/wiki/Mastermind_(board_game) Mastermind> is a code breaking logic puzzle. A pattern of 6 colors(values...

alrededor de 9 años hace

Resuelto


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

alrededor de 9 años hace

Resuelto


Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

alrededor de 9 años hace

Resuelto


Rotate it!
Given a set of points, your aim is to rotate it by a given angle "theta" CCW (in 2d). The points are given in a matrix(x) of dim...

alrededor de 9 años hace

Resuelto


How brilliant are you?
A Brilliant number is defined as a number with two prime factors, both of which have the same number of digits. Some examples: ...

alrededor de 9 años hace

Resuelto


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

alrededor de 9 años hace

Resuelto


raise 1/3
Raise a number to 1/3 power.

alrededor de 9 años hace

Resuelto


Even or Odd
Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...

alrededor de 9 años hace

Resuelto


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

alrededor de 9 años hace

Resuelto


Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

más de 9 años hace

Resuelto


Find my secret function IV
We use the same secret function used on the past "Find my secret function ..." x=23 -------->> y=3 X=1000 ------->> 163

más de 9 años hace

Resuelto


Find my secret function III
only write a function gives you an outputs as expls: input: x=2 ------->>> Output: Y=1 input: x=100 ------->>> Output: Y=...

más de 9 años hace

Resuelto


Find my secret function II
If give my function a x value it will give me a y value, so find the secret of it: Examples: input x=23 ---- >>> output y=1...

más de 9 años hace

Resuelto


Find my secret function I
If give my function a x value it will give me a y value, so find the secret of it: Examples: input x=[2 5 6 8 9] ---- >>> o...

más de 9 años hace

Resuelto


Find the maxmum value of N*N Matrix
Input x=[1 2 3; 4 5 6; 7 8 9] output: y=9

más de 9 años hace

Resuelto


Matrix game: Winner takes all
Given a matrix A, return a new matrix of the same size in which the biggest element of each column in A takes 1, and 0 for all t...

más de 9 años hace

Resuelto


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

más de 9 años hace

Resuelto


Determinants
Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

más de 9 años hace

Resuelto


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

más de 9 años hace

Resuelto


Is matlab fun?
Returns 'yes' no matter the input.

más de 9 años hace

Resuelto


Percentage profit:2
If you are selling at x dollar, you are facing r1% profit; what will be the selling price for making r2% profit?

más de 9 años hace

Resuelto


Percentage profit
If you are buying at x dollar, what will be the selling price for making the r% profit?

más de 9 años hace

Resuelto


Number of paths on a 3d grid
This problem is inspired by <https://www.mathworks.com/matlabcentral/cody/problems/1483-number-of-paths-on-a-grid>, which you mi...

más de 9 años hace

Resuelto


Find the optimal shape to bring the maximum product by a given perimeter
Find the optimal shape (with N sides) to bring the maximum product of the sides length, by a given perimeter. Example: Assumin...

más de 9 años hace

Resuelto


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

más de 9 años hace

Resuelto


without zeros
given an array with seros at the begining or at the end, you should get the output without these zeros: input = [zeros(5,...

más de 9 años hace

Resuelto


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

más de 9 años hace

Resuelto


Matrix Manipulation
Given an m*n matrix, see if a matrix contains any 0s in any row. if it contains 0 anywhere in any particular row, delete that ro...

más de 9 años hace

Cargar más