Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool numberExistsAgainInRow(int **grid, int row, int col, int num){
- for(int i=0; i<N; i++){
- if(i == col){
- continue;
- }
- if(grid[row][i] == num){
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement