Searching an efficient algorithm

Let's talk about algorithms!

Moderator: Board moderators

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

Searching an efficient algorithm

Post by MPC1984 » Fri Jul 03, 2015 5:13 pm

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”