i have two 15 X 15 arrays. what can be the efficient way to compare the equality of both the arrays..i dont want to use nested "for" loops..which is very slow...i want somethin efficient..
how to efficiently compare 2d array in c#
Collapse
X
-
The only way to compare two array is to go through all elements. I don't think you can do anything else but there is some rules of those arrays. If those arrays are sorted then it is different, or all elements are unique then you can do something about it.Originally posted by DeathFragi have two 15 X 15 arrays. what can be the efficient way to compare the equality of both the arrays..i dont want to use nested "for" loops..which is very slow...i want somethin efficient..
Cheers.
Comment