algorithm - What is the most efficient way to find elements in an unsorted list? -


given unsorted list in array, take @ least linear time find number of elements smaller x? if so, why?

yes, need examine every number @ least once know if less specified threshold. if numbers not sorted there nothing can infer them.


Comments

Popular posts from this blog

forms - Secure PHP File Upload Script -

PHP: Exploding array elements -

java - How do I override the spring framework version in Spring Batch? -