I want to also know how we can print the subarray

How can we print the subarray using kadanes algo. Is it possible?

@jamesallenvinoy yes you can print the subarray using kadanes algorithm. for implementation, you can refer to this link.

Why is the code removed?

@jamesallenvinoy no code is still live and link still active