I need to write a java program to find the index of the element whose value is the sum of the remaining elements. can anyone help me with this ?
Recently I have been asked this question in an Interview which I couldnt solve properly.
Iam writing a cumbersome code for this program which is not at all satisfying even for me.
Thanks in advance !