unable to get this approach .I have seen in discussion forms also the approach .But I am unable to get the approach .
Unable to get this approach
hello @bhupeshgupta
if the array is not circular then answer can be easily found out by kadane.
now the array is circular then can u think what additional case we need to take care of ?
yes I solved linear array .And i thought a approach to run the kadane’s algo in reverse and add both the solutions but that isnt appropriate .
In circular array we have one more case. the subrarray from left corner and right corner can combine and results in max subarray.
so u need to handle this case as well
ok I will try one more
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.