Skip to content

yosragouaiel/sortedsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

sortedsearch

C++ 14

Implement function countNumbers that accepts a sorted vector of unique integers and, efficiently with respect to time used, counts the number of vector elements that are less than the parameter lessThan.

For example, for vector v containing { 1, 3, 5, 7 }, countNumbers(v, 4) should return 2 because there are two vector elements less than 4.

About

C++ 14

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages