topic:
Thought:
now that4Two times,3也Two times,So it means that this question is nothing more than“As much as possible2indivual2indivual取,Turn count+1”
Although it can be optimized at running time,But I prefer to write a line
Code:
1 | class Solution: |