Count all subarrays only including 2, 3 or 4 have sum equal to N

后端 未结 0 1942
借酒劲吻你
借酒劲吻你 2020-12-11 01:10

1. Could you please tell me how to count all the subarrays only have number 2,3 or 4 has sum equal to a given int N?

Example:

Input: N = 1 Out

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