Making change
Given an amount of currency, return a vector of this form:
[100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01]
Example:
Input a = ...
mer än 6 år ago
Solved
Product of Each Column
Given a matrix |mat| with |n| columns, return a row vector |v| of length |n|, where every element in |v| is the product of the |...
mer än 6 år ago
Solved
Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape.
Every row |i| of the matrix contains |i| inte...