Number of Equivalent Domino Pairs Leetcode Solution
Problem statement In the problem ” Number of Equivalent Domino Pairs,” we are given a list of dominoes where each domino consists of two values like dominoes[i]=[a,b]. Two dominoes, dominoes[i] =[a,b] and dominoes[j]=[c,d] are equivalent if (a==c and b==d) or (a==d and c==d). Our task is to find out the …