Vivek Loves Array Game

Even after watching the hint video i am unable to proceed. Pls help

@aman2382000

Function( Array A, int start,int end ) :
In A find index i such that sum(start,i-1)==sum(i,end)
If there is no such index return 0
Otherwise return 1 + max( function(A,start,i-1) , function(A,i,end) )

If your doubt is resolved please mark it as closed