A method that has to return the number of elements in the smallest subarray that are greater than X returns the wrong number

前端 未结 0 1713
生来不讨喜
生来不讨喜 2020-12-05 20:57

For example, {1, 4, 45, 6, 0, 19} and the number 51 should return 3, because the number of elements in the smallest subarray which together are greater than 51 are 3: {4,45,

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