akkupy / codeDump

Drop your code snippets here!
GNU General Public License v3.0
55 stars 251 forks source link

Find special index in an array #492

Closed nandinisahu407 closed 9 months ago

nandinisahu407 commented 9 months ago

special index-> if after deleting element from index i , sum of even index=sum of odd index approach-> after deleting ,previous element at odd index will be now at even index and vice versa s_odd= odd[0 to i]+ even[i+1 to len] s_even=even[0 to i]+odd[i+1 to len]