I need to count the no of duplicates in an multidimensional array and give alert if duplicates found.
Arr =[[2,"sk"],[3,"df"],[7,"uz"],[3,"df"],[7,"gh"]]
Suggestions: Count can be done in this manner that if arr[0] position is equals to next coming positions then it must give a count & needs to check both values combination same. And then for arr[1] position to check for next coming positions and so on for other position till last
Only counts the exact combination Like [3,"df"] at second position equal to [3,"df"] at fourth combination
Expected Output Count :1 Alert duplicate data found
[[2,"sk"],[2,"sk"],[3,"df"],[3,"df"],[3,"df"]]?