rahulkotha18 / coding

2 stars 27 forks source link

Create trisect array #22

Open AurumnPegasus opened 4 years ago

AurumnPegasus commented 4 years ago

For an array accepted from the user, where each element can be positive or negative, We need to display the number of times it can be trisected, that is, the sum is the same of all three parts eg: 5 1 2 3 0 3 ans : 2 {1,2},{3},{0,3} {1,2},{3,0},{3}