C++ One-liner


  • 0
    F

    For fun:

    struct Solution {int countArrangement(int n) {return vector<int>{1,2,3,8,10,36,41,132,250,700,750,4010,4237,10680,24679}[n - 1];}};
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.