O
O
Oleg Carp2020-01-05 13:52:52
Java
Oleg Carp, 2020-01-05 13:52:52

Build a matrix according to the formula (interested in the value of the element "............")?

1 1 1 .... 1 1 1
0 1 1 .... 1 1 0
0 0 1 .... 1 0 0
....... <-- How to understand this? Type to do as from above or as from below by choice?
0 0 1 .... 1 0 0
0 1 1 .... 1 1 0
1 1 1 .... 1 1 1
Or something else?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Ruslan., 2020-01-05
@Rebel-Cat

It looks like you need to "mirror" the top part to get the full matrix.
And the line is, as it were, the axis of symmetry of the final matrix.

S
Sergey Gornostaev, 2020-01-05
@sergey-gornostaev

The person who gave you this assignment expects you to see a pattern in the data presented that makes it unnecessary to specify specific values ​​instead of points.

G
GavriKos, 2020-01-05
@GavriKos

You just have up and down diagonals of one. Sort of like an hourglass. From this, dance.

X
xmoonlight, 2020-01-05
@xmoonlight

Apparently, this is a square matrix with an arbitrary, but necessarily equal and even number of elements in its width and height.
There are always two identical rows in the center of the matrix:

0000000..00000011000000..0000000
0000000..00000011000000..0000000

For one cycle - 2 rows are filled at once from the center of the matrix to its extreme rows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question