A résolu


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

5 mois il y a

A résolu


to the 2 all elements
to the 2 all elements

5 mois il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

5 mois il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

5 mois il y a

A résolu


the average value of the elements
Calculate the average value of the elements in the array

5 mois il y a

A résolu


Generate binary combinations for a given number of bit(s)
Generate the binary combination as in the example below. Example: If you are given: bin_comb(2) The answer will be: ...

5 mois il y a

A résolu


Path of least resistance
Find the length of the shortest path through the matrix from the top left to bottom right corner. You may move right, down, or d...

5 mois il y a

A résolu


How many rectangles in a grid ?
How many rectangles are there in an m × n grid ? For example, if m=1 & n=2, we have 3 rectangles.

5 mois il y a

A résolu


Number of paths on a grid
Consider a grid formed by n vertices vertically down, and m vertices horizontally right. Your starting point is at the top lef...

5 mois il y a

A résolu


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

5 mois il y a

A résolu


Number of paths on a n-dimensional grid
This problem is inspired by <https://www.mathworks.com/matlabcentral/cody/problems/1483-number-of-paths-on-a-grid> and <https:/...

5 mois il y a

A résolu


Which way to go?
Given an m*n grid, How many ways are there to go from upper left corner to the lower right one? You can only move right...

5 mois il y a

A résolu


The Number of Ways
Find all the possible ways to reach the end of a matrix. So given [a b c d] the possible ways [a c],[a d],[b c],[b ...

5 mois il y a

A résolu


possible ways through matrix
This problem is inspired from problem 2405 <https://www.mathworks.com/matlabcentral/cody/problems/2405-the-number-of-ways>. C...

5 mois il y a

A résolu


Yet Another Path Finder
Assume there is a rectangular grid of points. These points are indicated by linear indices in a MATLAB-fashion. Some of the grid...

5 mois il y a

A résolu


Find the path through the cell
A list of cells is given. Return true if the elements of the list increase monotonically (each element is strictly larger tha...

5 mois il y a

A résolu


Project Euler: Problem 18, Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bott...

5 mois il y a

A résolu


Number of cyles and fixed points in a permutation
A permutation can be constructed from one or more sets of elements in cyclic order. A permutation in a single row vector form ...

5 mois il y a

A résolu


Break it up! Break it up!
You have N pennies. Write a Matlab script that will reveal how many different ways you can break up those pennies. For example...

5 mois il y a

A résolu


Find Logic 9

5 mois il y a

A résolu


Find Logic 8

5 mois il y a

A résolu


Find Logic 7

5 mois il y a

A résolu


Find Logic 3

5 mois il y a

A résolu


Find Logic 6

5 mois il y a

A résolu


Find Logic 15

5 mois il y a

A résolu


Find Logic 13

5 mois il y a

A résolu


Find Logic 18

5 mois il y a

A résolu


Find Logic 19

5 mois il y a

A résolu


Mass Conversion 1

5 mois il y a

A résolu


Temperature Conversion 3

5 mois il y a

Charger plus