I'm trying to check if an array's values are in the correct order. For example if, I want to check if an array is in the order `{1,2,3,4,5,6,7} or even a different order such as{1,2,4,3,5,6,7}, {1,4,2,3,5,6,7}, (4,1,2,3,5,6,7},{1,2,3,5,4,6,7},{1,2,3,5,6,4,7},etc.
I had tried this and it didn't work:
int board[7]= {1,2,3,4,5,6,7};
if(board[] = {1,2,3,4,5,6,7})
return true;
Is there a way to apply this concept?