Feeds
已解决
Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...
11 days 前
已解决
Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...
11 days 前
已解决
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
11 days 前
已解决
King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...
11 days 前
已解决
Car Battery Internal Resistance
Engineers at Tata Motors test a car battery with: EMF = 12 V Internal resistance = 1 Ω External resistance = 5 Ω Find curren...
11 days 前
已解决
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.
16 days 前
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
16 days 前
已解决
Plus Cross Mandala
Create a symmetrical plus (+) shaped pattern centered in an N×N matrix.
16 days 前
已解决
Pascal's Pyramid - A Variation with an Arial View
Let's create a matrix of size N x N containing a Pascal's Triangle in each quadrant that diverges from the centre to form an ari...
16 days 前
已解决
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:...
16 days 前

