given a positive number as a dividend, find out a subset from a given array, so that can get the minimum remainder

前端 未结 0 1630
北恋
北恋 2021-01-30 10:18

here is some cases: given number: 31 given array: [4, 5, 6, 7] then the result subset will be [5] or [6] as 31 divide 5 or 6, the remainder is 1, is the minimum one.

but

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