Answers

2016-03-13T12:56:25+05:30
public static boolean hasDuplicates(int [][] inArray) { for (int row = 0; row < inArray.length; row++) { int rowCheck = inArray[row][inArray.length]; for (int col = 0; col < inArray[row].length; col++) { } } return false; }

1 5 1
ok
http://stackoverflow.com/questions/21922354/check-duplicate-in-rows-and-columns-2d-array
i dont have in text book
ok in boolean what does false mean
is it a char
2016-03-15T08:22:06+05:30
Java, C programs can be used for checking of duplication in an 2-d array.
In C++, you could std::sort (as a sequence of std::pairs) and then std::unique or std::adjacent_find in a loop or whatever you need.
Or you could add them to a std::set (or even std::unordered_set) of such pairs, tracking where set.insert().second is false. There are plenty of ways to manipulate a sequence like this.

If you check this 14
45
25
67
You've to print the duplicate entries and use C++ containers. For accurate results and check. Thanks
0