Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.41K
#include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<string.h> #include<math.h> #define TRUE 1 #define FALSE 0 int t=1; int place(int k,int n); int queen(int k,int n); int x[5];//index for column and value at that index is row number int place(int k,int n) { int j; for(j=1;j<k;j++) { if((x[j]==x[k])||(k-j)==abs(x[j]-x[k])) { //printf("hi\n"); t=0; return t; } else … |