class Solution { public: /** * * @param n int整型 the n * @return int整型 */ int Process(int limit,int lineLimit,int leftLimit,int rightLimit){ if(limit == lineLimit) //如果二进制n位全部到达1,说明成功填满,返回次数1 return 1; int pos = limit & (~(lineLimit | left...