Getting the indices from a matrice
Getting the indices from a matrice.
Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull.
Given a...
6 years ago
Solved
Sum of diagonals
Compute the sum of diagonal elements of a square matrix and store the larger sum to s.
Eg : a = [1 2 3; 2 3 4; 4 5 10]
...
6 years ago
Solved
Repetition of matrices
*A is a bold matrix: [1 2 3; 4 5 6;7 8 9]*
Given an integer 'n' , a matrix B exists such that has n copies of A in the row an...
Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...
6 years ago
Solved
Nth root of a number
Given an input and a number N, find the Nth root of the number(s)