Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

what is time complexity of min_element()

So, according to the link here: 
the max_element function is O(n),
beacuase it touches at least every bucket of array
apparently for all STL containers.
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #time #complexity
ADD COMMENT
Topic
Name
8+7 =