Split number into n parts such that no part exceeds k

后端 未结 0 1821
南旧
南旧 2020-12-13 00:35

I have a number say 12. I have to split it into 3 parts such that no part exceeds 4. So I can split it as I can split it into 4, 4, 4. In a similar way, if 15 had to be spli

相关标签:
回答
  • 消灭零回复
提交回复
热议问题