N
N
ninetiledfox2021-05-07 21:26:06
Java
ninetiledfox, 2021-05-07 21:26:06

How to correctly compare the columns of a matrix?

Hello, please help me to draw up the logic of the solution - you need to compare the columns in a two-dimensional array, if they are equal, then leave only the first of the matching columns. (Coinciding columns are columns in which all corresponding elements are equal to each other). Thanks in advance for your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-05-07
@ninetiledfox

The logic is very simple:
Compare columns in a two-dimensional array, if they are equal then leave only the first of the matching columns. (Coinciding columns are columns in which all corresponding elements are equal to each other).
You're welcome.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question