Create an 'arrow-head" matrix
Write a function that when given an odd number, produces an arrow-head function pointing to the right.
Examples
n = 3
...
3 years 前
已解决
count to vector
Return a matrix of numbers of dimension K by N, where K = prod(v), and N=length(v). The rows count from a vector of ones up to v...
3 years 前
已解决
Find best domino orientation
Given a list of pairs, find the orientation they should be placed in a line, such that the sum of the absolute values of the dif...