Approach for question

Did i have to find all the boards possible by placing queens and finding all possible configration on board and use global count variable to count or there is any direct formula to be used in this question

hello @chirag.goel360
yeah u have to find all valid configuration using backtracking .and then print count.

no direct formula available