Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. bool numberExistsAgainInRow(int **grid, int row, int col, int num){
  2. for(int i=0; i<N; i++){
  3. if(i == col){
  4. continue;
  5. }
  6. if(grid[row][i] == num){
  7. return true;
  8. }
  9. }
  10. return false;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement