please tell me how to pass one function in to the other function.
please explain in detail
Passing function into another function
@Tiwary725 you can call the next function directly from the previous function.
if you have any doubt with the kadanes algorithm I would say that you do not need any kind of function it just two liner code