Hackerearth Airplane Arrangements

please explain the editorial

https://www.hackerearth.com/fr/practice/math/combinatorics/basics-of-combinatorics/practice-problems/algorithm/airplane-arrangements-4d8a1bca/editorial/

1 Like