Triangular matrices in 3D array
Given a 3D numeric array _x_, return an array _y_ of the same size in which all entries to the right of the main diagonal are ze...
4ヶ月 前
解決済み
Rainbow matrix
Create a "rainbow matrix" as described in the following examples
Input = 3
Output = [ 1 2 3
2 3 2
...
Flip the diagonal values
Write a program that flip the elements of main diagonal , upper and lower diagonal values of a sqare matrix.
For example if a ...
Combined Ages 1 - Symmetric, n = 3
You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...