Equilibrium index


/ Published in: Java
Save to your folder(s)

Given an array A of N integers, equi(A) is any index i for which:
(1) i is a valid index into A, i.e. 0

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.