find minimum initial value, such that sum is always 1 or greater

后端 未结 0 1410
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 03:14

Given an array of integers, find the smallest number X to start with, such that adding elements of array to X, the sum is always greater than or equal to 1

If given a

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