I really puted so much effort to understand how to solve this question but unfortuantly i am still missing something thats why i am not able to solve this issue. The question is:
Write a function that takes undetermined amount of domino tiles as input and determines if you can place them in a row with only matching numbers side by side. Return true of it is possible and false otherwise.
Each domino has two sides with the number 0-6, as depicted bellow.
Example A:
[2,2], [2,3],[3,6]..
this case return true.
Example B: [3,1], [1,5],[3,6]..
this case return false.
Detailed instructions: the ammount of domino tiles are given as input to the function in the following format, using example above: [[2,2], [2,3],[3,6]]
This is how they started the recommended function:
public bool dominos(long[,] arr1, long dim_1, long dim_2){
}