Searching an efficient algorithm

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
MPC1984
New poster
Posts: 40
Joined: Mon Jul 01, 2013 9:24 pm
Location: Valladolid, Spain

Searching an efficient algorithm

Post by MPC1984 »

Hi everybody!

I want to know if there is an algorithm that: given an unsorted array, I want to go element by element and know the number of subsequent elements that are smaller than the current one.

If that algorithm doesn't exist, could someone give me one efficient, please?

Thanks in advance. :wink:
Post Reply

Return to “Algorithms”