Split Array into equal halves according to the given conditions

后端 未结 0 678
忘掉有多难
忘掉有多难 2021-01-16 15:17

Given an integer array A of size N, check if the input array can be split into two parts such that -

  • Sum of both parts is equal
  • All elements in the inp
相关标签:
回答
  • 消灭零回复
提交回复
热议问题