JOIN
 Revision History
 Select a Forum     Round Tables New Member Discussions News Discussions Algorithm Matches Marathon Matches NASA Tournament Lab TopCoder Cookbook High School Matches Sponsor Discussions Development Forums Design Forums Search My Post History  |  My Watches  |  User Settings Forums Round Tables General Career Discussions Re: Question Revision History (1 edit)
 Re: Question (response to post by Minilek) My guess is they really are looking for something like```for (int i=0; i<3; i++) for (int j=0; j<3; j++) { int hor = 0; int vert = 0; int square = 0; for (int x=0; x<3; x++) for (int y=0; y<3; y++) { hor |= 1<< grid[3*i + j][3*x + y]; vert |= 1<< grid[3*x+y][3*i+j]; square |= 1<
 Re: Question (response to post by Minilek) My guess is they really are looking for something like```for (int i=0; i<3; i++) for (int j=0; j<3; j++) { int hor = 0; int vert = 0; int square = 0; for (int x=0; x<3; x++) for (int y=0; y<3; y++) { hor |= 1<< grid[3*i + j][[3*x + y]; vert |= 1<< grid[3*x+y][3*i+j]; square |= 1<