Jan 18, 2010

Find the number of negative elements in most efficient way

Given an n X n array with rows sorted and cols sorted, find the number of negative elements in most efficient way.

No comments: