Hi Almighty CF Community, ↵
↵
First I googled a lot but didn't get any explanation.(However code is available)↵
↵
I feel it difficult to solve problems of type **"no of ways to arrange some elements of chess so that they are attacking/not attacking each other."** I was solving [CSES Two Knights](https://cses.fi/problemset/task/1072) problem and I am struggling to come up by a general formula. ↵
↵
I will request if any one can explain the idea behind such problems in general? or at least for this Two Knights problem.↵
↵
$If \,you\, know \,some \,chess \,based \,problems, \,I \,will\, request\, you \,to \,please \,share \,it. \,Thanks.$
↵
First I googled a lot but didn't get any explanation.(However code is available)↵
↵
I feel it difficult to solve problems of type **"no of ways to arrange some elements of chess so that they are attacking/not attacking each other."** I was solving [CSES Two Knights](https://cses.fi/problemset/task/1072) problem and I am struggling to come up by a general formula. ↵
↵
I will request if any one can explain the idea behind such problems in general? or at least for this Two Knights problem.↵
↵
$If \,you\, know \,some \,chess \,based \,problems, \,I \,will\, request\, you \,to \,please \,share \,it. \,Thanks.$