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

presque 4 ans 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.

presque 4 ans 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: ...

presque 4 ans il y a

A résolu


Mass Conversion 1

presque 4 ans il y a

A résolu


Temperature Conversion 3

presque 4 ans il y a

A résolu


Temperature Conversion 2

presque 4 ans il y a

A résolu


Temperature Conversion 1

presque 4 ans il y a

A résolu


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

presque 4 ans il y a

A résolu


Return area of square
Side of square=input=a Area=output=b

presque 4 ans il y a

A résolu


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

presque 4 ans il y a

A résolu


Kinetic energy calculation

presque 4 ans il y a

A résolu


Potential energy calculation

presque 4 ans il y a

A résolu


Total energy

presque 4 ans il y a

A résolu


Laws of motion 6

presque 4 ans il y a

A résolu


Laws of motion 5

presque 4 ans il y a

A résolu


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

presque 4 ans il y a

A résolu


Laws of motion 3

presque 4 ans il y a

A résolu


Laws of motion 2

presque 4 ans il y a

A résolu


Laws of motion 1

presque 4 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

presque 4 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

presque 4 ans il y a

A résolu


True engineer
Prove that pi is indeed equal to e. Return 1 by rounding pi and e to the nearest integer then asserting rounded pi and e are eq...

presque 4 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

presque 4 ans il y a