Question: Can some one provide coding for this in java pleaseee Split the array You are given an array consisting of n positive integers. Print YES
Split the array You are given an array consisting of n positive integers. Print YES (without quotes) if there is a place to split the array so that the sum of the elements on one side is equal to the sum of the elements on the other side. Print NO (without quotes) otherwise. Input The first line of input contains an integer n, the number of elements in the array The second line of input contains n space separated integers, elements of the array Output Print "YES Without quotes) if it is possible to find such place, "NO (without quotes) otherwise Constraints 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
